nodelist.js revision 30d7fa0527f813aa95468c3409140a1bef2a4e24
/**
* The NodeList Utility provides a DOM-like interface for interacting with DOM nodes.
* @module node
* @submodule node-list
*/
/**
* The NodeList class provides a wrapper for manipulating DOM NodeLists.
* Use Y.get() to retrieve NodeList instances.
*
* <strong>NOTE:</strong> NodeList properties are accessed using
* the <code>set</code> and <code>get</code> methods.
*
* @class NodeList
* @constructor
*/
Y.Array._diff = function(a, b) {
var removed = [],
present = false;
present = false;
if (a[i] === b[j]) {
present = true;
continue outer;
}
}
if (!present) {
}
}
return removed;
};
Y.Array.diff = function(a, b) {
return {
};
};
// "globals"
var g_nodelists = [],
UID = '_yuid',
if (typeof nodes === 'string') {
}
Y.stamp(this);
};
// end "globals"
style: {
value: {}
}
};
NodeList._instances = [];
} else {
}
};
// call with instance context
// TODO: use node.set if instance exists
if (!instance) {
}
});
};
// call with instance context
ret = [];
// TODO: use node.get if instance exists
if (!instance) { // reuse tmp instance
}
});
return ret;
};
initializer: function(config) {
},
// TODO: move to Attribute
},
}
},
}
},
ret;
}
},
destructor: function() {
g_nodelists[this[UID]] = [];
},
refresh: function() {
var doc,
diff,
if (this._query) {
if (g_nodelists[this[UID]] &&
}
}
},
size: function() {
},
toString: function() {
var str = '',
}
}
}
}
},
getter: function() {
},
}
});
}
}, true);
});
// zero-length result returns null
};