Skip to content

Commit

Permalink
re-added array accessor cache to NodeLiveLists, temporary solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpvar committed Sep 8, 2010
1 parent dc346c9 commit 4abd7bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/jsdom/level1/core.js
Expand Up @@ -114,10 +114,11 @@ core.LiveNodeList = function(document, element, callback) {
this._callback = callback;
this._element = element;
this._document = document || element;
/* var results = core.mapDOMNodes(this._element, true, this._callback);
// TODO WARNING: this PROBABLY will cause unexpected behavior if used
var results = core.mapDOMNodesthis._element, true, this._callback);
for (var i = 0;i < results.length;i++) {
this[i] = results[i];
}*/
}
};

core.LiveNodeList.prototype = {
Expand Down

0 comments on commit 4abd7bc

Please sign in to comment.