selector-native.js revision 36ee9a8c078d29956f6eda3d99f87a772d9f6cd0
(function(Y) {
/**
* The selector-native module provides support for native querySelector
* @module selector-native
*/
/**
* Provides a wrapper for native querySelectorAll
* @for Selector
*/
var NativeSelector = {
_reUnSupported: /!./,
_foundCache: [],
_supportsNative: function() {
// whitelist and feature detection to manage
// future implementations manually
},
i, len;
try {
} catch(e) { // IE: requires manual copy
ret = [];
}
}
}
return ret;
},
_clearFoundCache: function() {
i, len;
try { // IE no like delete
delete foundCache[i]._found;
} catch(e) {
}
}
foundCache = [];
},
if (nodes) {
});
}
}
return nodes;
},
var ret = [],
i, node;
}
}
return ret;
},
// allows element scoped queries to begin with combinator
// e.g. query('> p', document.body) === query('body > p')
queries = [],
i, len;
if (root) {
if (!isDocRoot) {
// break into separate queries for element scoping
}
} else {
}
}
return queries;
},
}
i, query;
if (selector) {
ret = [];
try {
}
} catch(e) {
}
}
}
}
return ret;
},
var ret = [],
i, node;
}
}
} else {
}
return ret;
},
var ret = false,
item,
i, group;
if (ret) {
break;
}
}
}
return ret;
}
};
}
// allow standalone selector-native module
if (NativeSelector._supportsNative()) {
//Y.Selector.filter = NativeSelector._filter;
//Y.Selector.test = NativeSelector._test;
}
})(Y);