OSDN Git Service

Version 0.6.153, fix layout @X.UI.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 08_XNodeSelector.js
index 00b0013..4b735e0 100644 (file)
@@ -226,13 +226,29 @@ function X_Node_Selector__parse( query, last ){
 };\r
 \r
        /**\r
-        * selector を使って Node を取得する\r
+        * selector を使って Node, NodeList を取得する\r
         * @alias X.Doc.find\r
         * @function\r
         * @param {string} セレクター文字列\r
         * @return {Node|NodeList}\r
         */\r
-       X[ 'Doc' ][ 'find' ] = X_shortcutFunction = Node.prototype[ 'find' ] = X_NodeList.prototype[ 'find' ] = function ( queryString ){\r
+       X[ 'Doc' ][ 'find' ] = X_shortcutFunction =\r
+       /**\r
+        * selector を使って Node, NodeList を取得する\r
+        * @alias Node.prototype.find\r
+        * @function\r
+        * @param {string} セレクター文字列\r
+        * @return {Node|NodeList}\r
+        */\r
+       Node.prototype[ 'find' ] =\r
+       /**\r
+        * selector を使って Node, NodeList を取得する\r
+        * @alias NodeList.prototype.find\r
+        * @function\r
+        * @param {string} セレクター文字列\r
+        * @return {Node|NodeList}\r
+        */\r
+       X_NodeList.prototype[ 'find' ] = function ( queryString ){\r
                var HTML      = X_Node_html,\r
                        scope     = this.constructor === X_NodeList && this.length ? this : [ this.constructor === Node ? this : X_Node_body ],\r
                        parents   = scope, // 探索元の親要素 XNodeList の場合あり\r