diff options
author | anekos | 2014-10-30 21:10:59 +0900 |
---|---|---|
committer | anekos | 2014-10-30 21:11:56 +0900 |
commit | 7b1c055cbe421b4da582f7a587bb27ed6281dd1c (patch) | |
tree | 2b960e2448ec9c25969eabc0a6959e6ee822ead9 | |
parent | 3765fe33575088dad4d4f9a51e907f695546e5b3 (diff) | |
download | vimperator-plugins-7b1c055cbe421b4da582f7a587bb27ed6281dd1c.tar.bz2 |
なんかおかっしいで
-rw-r--r-- | twittperator.js | 8 |
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) }); |