aboutsummaryrefslogtreecommitdiffstats
path: root/pino.js
diff options
context:
space:
mode:
Diffstat (limited to 'pino.js')
-rw-r--r--pino.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/pino.js b/pino.js
index 375a55f..ca8cd47 100644
--- a/pino.js
+++ b/pino.js
@@ -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();