From 7b1c055cbe421b4da582f7a587bb27ed6281dd1c Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 30 Oct 2014 21:10:59 +0900 Subject: なんかおかっしいで --- twittperator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'twittperator.js') 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) }); -- cgit v1.2.3