diff options
author | anekos | 2011-09-13 01:09:34 +0900 |
---|---|---|
committer | anekos | 2011-09-13 01:16:40 +0900 |
commit | b6ee3e5cb9a34a99e387b0c47f8a76320c38b292 (patch) | |
tree | ef2bc88f92108b5157d2393de2b326fb68b038b3 /pino.js | |
parent | 6aad0ed3c73cca3d514192875e03c1a10920fa6a (diff) | |
download | vimperator-plugins-b6ee3e5cb9a34a99e387b0c47f8a76320c38b292.tar.bz2 |
libly.Request.addEventListener のイベント名引数の変更に対応
Diffstat (limited to 'pino.js')
-rw-r--r-- | pino.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -259,10 +259,10 @@ let self = liberator.plugins.pino = (function() { } ); - request.addEventListener("onSuccess", function(data) { + request.addEventListener("success", function(data) { liberator.log("Removed pin from '" + link + "' was succeeded."); }); - request.addEventListener("onFailure", function(data) { + request.addEventListener("failure", function(data) { liberator.echoerr("Cannot remove pin"); }); request.post(); @@ -279,14 +279,14 @@ let self = liberator.plugins.pino = (function() { } ); - request.addEventListener("onSuccess", function(data) { + request.addEventListener("success", function(data) { if (isLoginPage(data)) { liberator.echoerr("Can't get pinned list. Maybe you should login to livedoor."); return; } result = unentifyObjectValues(liberator.eval(data.responseText)); }); - request.addEventListener("onFailure", function(data) { + request.addEventListener("failure", function(data) { liberator.echoerr("Can't get pinned list!!!"); }); request.post(); |