diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-02-17 17:14:54 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-02-17 17:14:54 -0500 |
commit | 8d6546824d87e90d2e9bc95277e23f5a8b49dfe2 (patch) | |
tree | 455d86578bd3fde43a145387fa1cd197d5dc5e03 /www/js/html5ks.js | |
parent | 6c26d2c37d9e2bf9c9f4bfb95078486d0c9d2c4c (diff) | |
download | html5ks-8d6546824d87e90d2e9bc95277e23f5a8b49dfe2.tar.xz html5ks-8d6546824d87e90d2e9bc95277e23f5a8b49dfe2.zip |
stuff
Diffstat (limited to 'www/js/html5ks.js')
-rw-r--r-- | www/js/html5ks.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/www/js/html5ks.js b/www/js/html5ks.js index f9572b0..07d2427 100644 --- a/www/js/html5ks.js +++ b/www/js/html5ks.js @@ -1,4 +1,8 @@ "use strict"; +window.assert = function (c, m) { + if (console.assert) console.assert.apply(console, arguments); + else if (!c) throw new Error(m); +}; window.html5ks = { data: {}, persistent: {}, @@ -105,7 +109,7 @@ window.html5ks = { } }, 1000); this._spinners += mod; - console.assert(this._spinners >= 0); + assert(this._spinners >= 0); }, scale: function () { var newScale = 1; |