mirror of https://github.com/gorhill/uBlock.git
Fix wrong fix in 4bf6664
This commit is contained in:
parent
41ae0c08c7
commit
2024ba1bcd
|
@ -40,6 +40,18 @@ var DOMList = function() {
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
Object.defineProperty(
|
||||||
|
DOMList.prototype,
|
||||||
|
'length',
|
||||||
|
{
|
||||||
|
get: function() {
|
||||||
|
return this.nodes.length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
var DOMListFactory = function(selector, context) {
|
var DOMListFactory = function(selector, context) {
|
||||||
var r = new DOMList();
|
var r = new DOMList();
|
||||||
if ( typeof selector === 'string' ) {
|
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) {
|
DOMList.prototype.nodeAt = function(i) {
|
||||||
return this.nodes[i];
|
return this.nodes[i];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue