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