# HG changeset patch # User Mads Kiilerich # Date 2014-09-24 14:24:40 # Node ID a321fe97bb87aa15a7995b5478769cabf16f4b01 # Parent 7590b93aac9a9508dc340985c46da31b30d7e255 javascript: use strict diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -1,6 +1,7 @@ /** Kallithea JS Files **/ +'use strict'; if (typeof console == "undefined" || typeof console.log == "undefined"){ console = { log: function() {} } @@ -99,8 +100,6 @@ if (!Array.prototype.filter) { Array.prototype.filter = function(fun /*, thisArg */) { - "use strict"; - if (this === void 0 || this === null) throw new TypeError();