added ext/ folder, to hold some core prototype functions

This commit is contained in:
cloudhead
2010-03-03 21:20:07 -05:00
parent 095523bf59
commit fe0ed621b9
2 changed files with 8 additions and 0 deletions

6
lib/ext/array.js Normal file
View File

@@ -0,0 +1,6 @@
Array.prototype.find = function (fun) {
for (var i = 0, r; i < this.length; i++) {
if (r = fun.call(this, this[i])) { return r }
}
return null;
};

View File

@@ -9,3 +9,5 @@ process.mixin(less.parser, require('less/node'));
process.mixin(less.tree, require('less/tree'));
process.mixin(exports, less);
require('ext/array');