changeset 4542:a321fe97bb87

javascript: use strict
author Mads Kiilerich <madski@unity3d.com>
date Wed, 24 Sep 2014 14:24:40 +0200
parents 7590b93aac9a
children dcf7fe7a8e9a
files kallithea/public/js/base.js
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();