mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
sometimes we just want a simple DOM node lookup, not a heavy wrapper
This commit is contained in:
parent
47fd9262af
commit
c27b18d7d1
1 changed files with 6 additions and 0 deletions
|
|
@ -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 a new issue