OSDN Git Service

Version 0.6.57, fixed NS of X.UI & X.Class for __proto__.
[pettanr/clientJs.git] / 0.6.x / js / dom / 18_XDomQuery.js
index 12d3d75..e1740fd 100644 (file)
@@ -207,7 +207,7 @@ X.Dom.Query._parse = function( query, last ){
        // セレクター\r
        X.Dom.find = X._shortcut = Node.prototype.find = X.Dom.NodeList.prototype.find = function( queryString ){\r
                var HTML      = Node._html,\r
-                       scope     = this.constructor === X.Dom.NodeList && this.length ? this : [ this.constructor === Node ? this : Node.root ],\r
+                       scope     = this.constructor === X.Dom.NodeList && this.length ? this : [ this.constructor === Node ? this : Node._body ],\r
                        parents   = scope, // 探索元の親要素 XNodeList の場合あり\r
                        noLower   = 'title id name class for action archive background cite classid codebase data href longdesc profile src usemap',// + X.Dom.DTD.ATTR_VAL_IS_URI.join( ' ' ),\r
                        ARY_PUSH  = Array.prototype.push,\r
@@ -227,7 +227,7 @@ X.Dom.Query._parse = function( query, last ){
 \r
                /*@+debug[*/\r
                if( X.Dom.readyState < X.Dom.Event.XDOM_READY ){\r
-                       alert( 'not ready! X.Dom.listen( X.Dom.Event.XDOM_READY, callback )' );\r
+                       alert( 'not ready! use X.Dom.listenOnce( X.Dom.Event.XDOM_READY, callback )' );\r
                        return;\r
                };\r
                /*]@+debug*/\r