aboutsummaryrefslogtreecommitdiffstats
path: root/nextlink.js
diff options
context:
space:
mode:
Diffstat (limited to 'nextlink.js')
-rw-r--r--nextlink.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/nextlink.js b/nextlink.js
index 9149966..e96ea1c 100644
--- a/nextlink.js
+++ b/nextlink.js
@@ -264,9 +264,9 @@ Autopager.prototype = {
return true;
}
- req.addEventListener("onSuccess", $U.bind(this, this.onSuccess));
- req.addEventListener("onFailure", $U.bind(this, this.onFailure));
- req.addEventListener("onException", $U.bind(this, this.onFailure));
+ req.addEventListener("success", $U.bind(this, this.onSuccess));
+ req.addEventListener("failure", $U.bind(this, this.onFailure));
+ req.addEventListener("exception", $U.bind(this, this.onFailure));
req.get();
},
onSuccess: function(res) {