Merge branch 'master' of https://github.com/roojs/roojs1 into github
[roojs1] / Roo.js
diff --git a/Roo.js b/Roo.js
index f76abd4..7df38d2 100644 (file)
--- a/Roo.js
+++ b/Roo.js
@@ -573,14 +573,15 @@ Roo.factory(conf, Roo.data);
                 
         /**
          * Selects a single element as a Roo Element
+         * This is about as close as you can get to jQuery's $('do crazy stuff')
          * @param {String} selector The selector/xpath query
          * @param {Node} root (optional) The start of the query (defaults to document).
          * @return {Roo.Element}
          */
-        selectNode : element(selector, root) 
+        selectNode : function(selector, root) 
         {
             var node = Roo.DomQuery.selectNode(selector,root);
-            return node ? Roo.get(node) : false;
+            return node ? Roo.get(node) : new Roo.Element(false);
         }
         
     });