From b6ee3e5cb9a34a99e387b0c47f8a76320c38b292 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 13 Sep 2011 01:09:34 +0900 Subject: libly.Request.addEventListener のイベント名引数の変更に対応 --- hatebuWatchDog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hatebuWatchDog.js') 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..."); -- cgit v1.2.3