X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F02_dom%2F00_XDoc.js;h=7232833c70bdfb07edbd367d65f91f303e886e1a;hb=8e74cf066ea48ec8cf34efb2b5e84725c10c813a;hp=e2fcbf8a99fdc55d1819059fd6c6f889250af0b5;hpb=42e0982b02a99c71702ce8cd8740645aefdc8097;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/02_dom/00_XDoc.js b/0.6.x/js/02_dom/00_XDoc.js index e2fcbf8..7232833 100644 --- a/0.6.x/js/02_dom/00_XDoc.js +++ b/0.6.x/js/02_dom/00_XDoc.js @@ -4,6 +4,10 @@ * @alias X.Doc */ X[ 'Doc' ] = { + /** + * EventDispatcher.prototype.listen 参照 + * @alias X.Doc.listen + */ 'listen' : function( type, arg1, arg2, arg3 ){ if( type <= X_ViewPort_readyState && type === 'DOMContentLoaded' ){ /* @@ -12,10 +16,13 @@ X[ 'Doc' ] = { X_ViewPort_document[ 'asyncDispatch' ]( type ); }; type && arg1 && X_ViewPort_document[ 'listen' ]( type, arg1, arg2, arg3 ); - return X.Doc; + return X[ 'Doc' ]; }, - + /** + * EventDispatcher.prototype.listenOnce 参照 + * @alias X.Doc.listenOnce + */ 'listenOnce' : function( type, arg1, arg2, arg3 ){ if( type <= X_ViewPort_readyState && type === 'DOMContentLoaded' ){ /* @@ -24,14 +31,22 @@ X[ 'Doc' ] = { X_ViewPort_document[ 'asyncDispatch' ]( type ); }; type && arg1 && X_ViewPort_document[ 'listenOnce' ]( type, arg1, arg2, arg3 ); - return X.Doc; + return X[ 'Doc' ]; }, - + + /** + * EventDispatcher.prototype.unlisten 参照 + * @alias X.Doc.unlisten + */ 'unlisten' : function( type, arg1, arg2, arg3 ){ type && arg1 && X_ViewPort_document[ 'unlisten' ]( type, arg1, arg2, arg3 ); - return X.Doc; + return X[ 'Doc' ]; }, - + + /** + * EventDispatcher.prototype.listening 参照 + * @alias X.Doc.listening + */ 'listening' : function( type, arg1, arg2, arg3 ){ return X_ViewPort_document[ 'listening' ]( type, arg1, arg2, arg3 ); }, @@ -39,11 +54,7 @@ X[ 'Doc' ] = { 'create' : X_Doc_create, 'createText' : X_Doc_createText - - // html - // head - // body - // find + }; /** @@ -57,13 +68,13 @@ X[ 'Doc' ] = { function X_Doc_create( tag, opt_attrs, opt_css ){ var list, i; switch( X_Node_getType( tag ) ){ - case X_Node_TYPE.STRING : + case X_NodeType_STRING : X_Node_newByTag = true; return new Node( tag, opt_attrs, opt_css ); - case X_Node_TYPE.HTML_STRING : + case X_NodeType_HTML_STRING : list = X_HtmlParser_parse( tag, true ); for( i = list.length; 1 < i; ){ - list[ --i ].destroy(); + list[ --i ][ 'kill' ](); }; return list[ 0 ]; };