Permalink
Browse files

re-added array accessor cache to NodeLiveLists, temporary solution.

  • Loading branch information...
1 parent dc346c9 commit 4abd7bcf0dc04a1847ca56d1e0f1fd57f6e24d27 @tmpvar committed Sep 8, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/jsdom/level1/core.js
@@ -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 = {

0 comments on commit 4abd7bc

Please sign in to comment.