Fix wrong fix in 4bf6664

This commit is contained in:
Deathamns 2014-11-10 19:25:17 +01:00
parent 41ae0c08c7
commit 2024ba1bcd
1 changed files with 12 additions and 6 deletions

View File

@ -40,6 +40,18 @@ var DOMList = function() {
/******************************************************************************/
Object.defineProperty(
DOMList.prototype,
'length',
{
get: function() {
return this.nodes.length;
}
}
);
/******************************************************************************/
var DOMListFactory = function(selector, context) {
var r = new DOMList();
if ( typeof selector === 'string' ) {
@ -196,12 +208,6 @@ var doesMatchSelector = function(node, selector) {
/******************************************************************************/
DOMList.prototype.length = function() {
return this.nodes.length;
};
/******************************************************************************/
DOMList.prototype.nodeAt = function(i) {
return this.nodes[i];
};