diff options
-rwxr-xr-x | twittperator.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/twittperator.js b/twittperator.js index 1ab1d4e..c425e1a 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1036,9 +1036,9 @@ function xmlhttpRequest(options){ let xhr = new XMLHttpRequest(); xhr.open(options.method, options.url, true); if (typeof options.onload == "function"){ - xhr.onload = function(){ - options.onload(xhr); - } + xhr.onload = function(){ + options.onload(xhr); + } } xhr.send(null); } |