errorHandler in taconite-client
Brought to you by:
asleson
taconite-client.js :
every time you call the errorHandler function you check if it exists:
if(errorHandler) {
errorHandler(self, exception);
}
but in the ajaxRequest function not:
if(ajaxRequest.getXMLHttpRequestObject().status != 200) {
errorHandler(self);
return;
}
so you have to change this to
if(ajaxRequest.getXMLHttpRequestObject().status != 200) {
if(errorHandler) {
errorHandler(self);
}
return;
}