diff --git a/src/js/udom.js b/src/js/udom.js index 98d131823..f154fb645 100644 --- a/src/js/udom.js +++ b/src/js/udom.js @@ -86,6 +86,10 @@ DOMListFactory.nodeFromId = function(id) { return document.getElementById(id); }; +DOMListFactory.nodeFromSelector = function(selector) { + return document.querySelector(selector); +}; + /******************************************************************************/ var addNodeToList = function(list, node) {