diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-05 20:22:51 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-05 20:22:51 -0500 |
commit | 055870a6b2914949ee0aab4cd7eb5e802d9c551c (patch) | |
tree | 544f236917c355915e0e3e0e001062e681b88ea8 /www/js/html5ks.js | |
parent | 00faee3432b8c78ce0f4c528e602f550663390e9 (diff) | |
download | html5ks-055870a6b2914949ee0aab4cd7eb5e802d9c551c.tar.xz html5ks-055870a6b2914949ee0aab4cd7eb5e802d9c551c.zip |
Add console.error to most .then, speed up Makefile
Diffstat (limited to 'www/js/html5ks.js')
-rw-r--r-- | www/js/html5ks.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/www/js/html5ks.js b/www/js/html5ks.js index f6f226a..25b7c23 100644 --- a/www/js/html5ks.js +++ b/www/js/html5ks.js @@ -178,10 +178,10 @@ window.html5ks = { delete d[k]; } } - }); + }, console.error); html5ks.api.movie_cutscene("4ls", true).then(function () { html5ks.menu.mainMenu(); - }); + }, console.error); }, fetch: function (type, name) { var deferred = when.defer(); @@ -197,6 +197,9 @@ window.html5ks = { html5ks.data[name] = d; deferred.resolve(d); }; + xhr.onerror = function () { + deferred.reject(); + }; xhr.send(); } break; |