Fix ajax handler name
This commit is contained in:
+2
-2
@@ -137,8 +137,8 @@ function JStuffAjax(attr) {
|
|||||||
this.onReadyStateChange = function() {
|
this.onReadyStateChange = function() {
|
||||||
if (this.request.readyState == 4) {
|
if (this.request.readyState == 4) {
|
||||||
if (this.request.status === 200) {
|
if (this.request.status === 200) {
|
||||||
if (typeof (this.attr.load) !== 'undefined') {
|
if (typeof (this.attr.handler) !== 'undefined') {
|
||||||
this.attr.load(this.request.status, this.request.responseText);
|
this.attr.handler(this.request.status, this.request.responseText);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user