1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02:00

sometimes we just want a simple DOM node lookup, not a heavy wrapper

This commit is contained in:
gorhill 2015-06-10 08:25:47 -04:00
parent 47fd9262af
commit c27b18d7d1

View File

@ -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);