aboutsummaryrefslogtreecommitdiffstats
path: root/hatebuWatchDog.js
diff options
context:
space:
mode:
authoranekos2011-09-13 01:09:34 +0900
committeranekos2011-09-13 01:16:40 +0900
commitb6ee3e5cb9a34a99e387b0c47f8a76320c38b292 (patch)
treeef2bc88f92108b5157d2393de2b326fb68b038b3 /hatebuWatchDog.js
parent6aad0ed3c73cca3d514192875e03c1a10920fa6a (diff)
downloadvimperator-plugins-b6ee3e5cb9a34a99e387b0c47f8a76320c38b292.tar.bz2
libly.Request.addEventListener のイベント名引数の変更に対応
Diffstat (limited to 'hatebuWatchDog.js')
-rw-r--r--hatebuWatchDog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/hatebuWatchDog.js b/hatebuWatchDog.js
index 476cbf4..0a683e4 100644
--- a/hatebuWatchDog.js
+++ b/hatebuWatchDog.js
@@ -119,13 +119,13 @@ let publics = plugins.hatebuWatchDog = (function() {
);
let currentValue;
- req.addEventListener("onSuccess", function(data) {
+ req.addEventListener("success", function(data) {
liberator.log("XML-RPC request was succeeded.");
let resXml = new XML(data.responseText.replace(/^<\?xml version[^>]+?>/, ''));
currentValue = window.eval(resXml..int.toString());
onSuccess(currentValue);
});
- req.addEventListener("onFailure", function(data) {
+ req.addEventListener("failure", function(data) {
onFailure();
});
liberator.log("reauest...");