diff options
Diffstat (limited to 'src/jqLite.js')
| -rw-r--r-- | src/jqLite.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/jqLite.js b/src/jqLite.js index 2dd2ac47..cda8ec70 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -145,7 +145,7 @@ function JQLiteAddNodes(root, elements) { ////////////////////////////////////////// // Functions which are declared directly. ////////////////////////////////////////// -var JQLitePrototype = JQLite.prototype = extend([], { +var JQLitePrototype = JQLite.prototype = { ready: function(fn) { var fired = false; @@ -163,8 +163,12 @@ var JQLitePrototype = JQLite.prototype = extend([], { var value = []; forEach(this, function(e){ value.push('' + e);}); return '[' + value.join(', ') + ']'; - } -}); + }, + length: 0, + push: push, + sort: [].sort, + splice: [].splice +}; ////////////////////////////////////////// // Functions iterating getter/setters. |
