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
1 changed files with 6 additions and 0 deletions

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