mirror of https://github.com/gorhill/uBlock.git
sometimes we just want a simple DOM node lookup, not a heavy wrapper
This commit is contained in:
parent
47fd9262af
commit
c27b18d7d1
|
@ -82,6 +82,12 @@ DOMListFactory.onLoad = function(callback) {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
DOMListFactory.nodeFromId = function(id) {
|
||||
return document.getElementById(id);
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
var addNodeToList = function(list, node) {
|
||||
if ( node ) {
|
||||
list.nodes.push(node);
|
||||
|
|
Loading…
Reference in New Issue