aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2014-10-30 21:10:59 +0900
committeranekos2014-10-30 21:11:56 +0900
commit7b1c055cbe421b4da582f7a587bb27ed6281dd1c (patch)
tree2b960e2448ec9c25969eabc0a6959e6ee822ead9
parent3765fe33575088dad4d4f9a51e907f695546e5b3 (diff)
downloadvimperator-plugins-7b1c055cbe421b4da582f7a587bb27ed6281dd1c.tar.bz2
なんかおかっしいで
-rw-r--r--twittperator.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/twittperator.js b/twittperator.js
index 609a36a..215750f 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -1253,7 +1253,7 @@ let INFO = xml`
callback(d.responseText);
}
}else{
- callback(d.statusText);
+ throw d.statusText || d.toString();
}
},
};
@@ -1286,7 +1286,7 @@ let INFO = xml`
}
} else {
// typeof d == object
- callback(d);
+ throw d.statusText || d.toString();
}
}
};
@@ -1315,7 +1315,7 @@ let INFO = xml`
callback(d.responseText);
}
}else{
- callback(d.statusText);
+ throw d.statusText;
}
},
};
@@ -1636,7 +1636,7 @@ let INFO = xml`
}; // }}}
let Twitter = { // {{{
destroy: function(id) { // {{{
- tw.jsonDelete("statuses/destroy/" + id, null, function(res) {
+ tw.jsonPost("statuses/destroy/" + id, null, function(res) {
res = Utils.fixStatusObject(res);
Twittperator.echo("delete: " + res.user.name + " " + res.text)
});