8 * EventDispatcher.prototype.listen 参照
11 'listen' : function( type, arg1, arg2, arg3 ){
12 if( type <= X_ViewPort_readyState && type === 'DOMContentLoaded' ){
14 * X.Event.XDOM_READY 以後に listen した場合の対策
16 X_ViewPort_document[ 'asyncDispatch' ]( type );
18 type && arg1 && X_ViewPort_document[ 'listen' ]( type, arg1, arg2, arg3 );
23 * EventDispatcher.prototype.listenOnce 参照
24 * @alias X.Doc.listenOnce
26 'listenOnce' : function( type, arg1, arg2, arg3 ){
27 if( type <= X_ViewPort_readyState && type === 'DOMContentLoaded' ){
29 * X.Event.XDOM_READY 以後に listen した場合の対策
31 X_ViewPort_document[ 'asyncDispatch' ]( type );
33 type && arg1 && X_ViewPort_document[ 'listenOnce' ]( type, arg1, arg2, arg3 );
38 * EventDispatcher.prototype.unlisten 参照
39 * @alias X.Doc.unlisten
41 'unlisten' : function( type, arg1, arg2, arg3 ){
42 type && arg1 && X_ViewPort_document[ 'unlisten' ]( type, arg1, arg2, arg3 );
47 * EventDispatcher.prototype.listening 参照
48 * @alias X.Doc.listening
50 'listening' : function( type, arg1, arg2, arg3 ){
51 return X_ViewPort_document[ 'listening' ]( type, arg1, arg2, arg3 );
54 'create' : X_Doc_create,
56 'createText' : X_Doc_createText
61 * X.Node 要素を作成する。この時点でツリーには追加されない。
63 * @param {string} tag タグ名
64 * @param {object} opt_attrs 属性
65 * @param {object} opt_css スタイル
68 function X_Doc_create( tag, opt_attrs, opt_css ){
70 switch( X_Node_getType( tag ) ){
71 case X_NodeType_STRING :
72 X_Node_newByTag = true;
73 return new Node( tag, opt_attrs, opt_css );
74 case X_NodeType_HTML_STRING :
75 list = X_HtmlParser_parse( tag, true );
76 for( i = list.length; 1 < i; ){
77 list[ --i ][ 'kill' ]();
84 * X.Node テキストを作成する。この時点でツリーには追加されない。
85 * @alias X.Doc.createText
86 * @param {string} textContent
89 function X_Doc_createText( text ){
90 X_Node_newByText = true;
91 return new Node( text );