From b6ee3e5cb9a34a99e387b0c47f8a76320c38b292 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 13 Sep 2011 01:09:34 +0900 Subject: libly.Request.addEventListener のイベント名引数の変更に対応 --- vimp_to_android_phone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vimp_to_android_phone.js') diff --git a/vimp_to_android_phone.js b/vimp_to_android_phone.js index 3b4821a..f428f59 100644 --- a/vimp_to_android_phone.js +++ b/vimp_to_android_phone.js @@ -32,7 +32,7 @@ var sendToPhone = function(requestURL) { 'Content-Type': 'application/x-www-form-urlencoded', 'X-Extension': 'true' }); - req.addEventListener('onSuccess', function(res) { + req.addEventListener('success', function(res) { var body = res.responseText; if (body.substring(0, 2) == 'OK') { liberator.echo('Send to phone successed.'); @@ -44,7 +44,7 @@ var sendToPhone = function(requestURL) { liberator.open(signOutURL, liberator.NEW_TAB); } }); - req.addEventListener('onFailure', function(res) { + req.addEventListener('failure', function(res) { liberator.echoerr('Send to phone failed.'); }); req.get(); -- cgit v1.2.3