diff --git a/lib/nodes.js b/lib/nodes.js index 2c4a8df1..3383eb2a 100644 --- a/lib/nodes.js +++ b/lib/nodes.js @@ -1962,7 +1962,7 @@ UTILITIES = { "extends": 'function(child, parent) {\n function ctor() { this.constructor = child; }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor;\n if (typeof parent.extended === "function") parent.extended(child);\n child.__super__ = parent.prototype;\n}', bind: 'function(func, context) {\n return function() { return func.apply(context, arguments); };\n}', - inArray: '(function() {\n var indexOf = Array.prototype.indexOf || function (item) {\n var i = this.length; while (i--) if (this[i] === item) return i;\n return -1;\n };\n return function(array, item) { return indexOf.call(array, item) > -1; };\n})();', + inArray: '(function() {\n var indexOf = Array.prototype.indexOf || function(item) {\n var i = this.length; while (i--) if (this[i] === item) return i;\n return -1;\n };\n return function(array, item) { return indexOf.call(array, item) > -1; };\n})();', hasProp: 'Object.prototype.hasOwnProperty', slice: 'Array.prototype.slice' }; diff --git a/src/nodes.coffee b/src/nodes.coffee index 3b2038b5..d0acfa13 100644 --- a/src/nodes.coffee +++ b/src/nodes.coffee @@ -1674,7 +1674,7 @@ UTILITIES = # Discover if an item is in an array. inArray: ''' (function() { - var indexOf = Array.prototype.indexOf || function (item) { + var indexOf = Array.prototype.indexOf || function(item) { var i = this.length; while (i--) if (this[i] === item) return i; return -1; };