7 'listen' : function( type, arg1, arg2, arg3 ){
8 if( type <= X_ViewPort_readyState && type === 'DOMContentLoaded' ){
10 * X.Event.XDOM_READY 以後に listen した場合の対策
12 X_ViewPort_document[ 'asyncDispatch' ]( type );
14 type && arg1 && X_ViewPort_document[ 'listen' ]( type, arg1, arg2, arg3 );
19 'listenOnce' : function( type, arg1, arg2, arg3 ){
20 if( type <= X_ViewPort_readyState && type === 'DOMContentLoaded' ){
22 * X.Event.XDOM_READY 以後に listen した場合の対策
24 X_ViewPort_document[ 'asyncDispatch' ]( type );
26 type && arg1 && X_ViewPort_document[ 'listenOnce' ]( type, arg1, arg2, arg3 );
30 'unlisten' : function( type, arg1, arg2, arg3 ){
31 type && arg1 && X_ViewPort_document[ 'unlisten' ]( type, arg1, arg2, arg3 );
35 'listening' : function( type, arg1, arg2, arg3 ){
36 return X_ViewPort_document[ 'listening' ]( type, arg1, arg2, arg3 );
39 'create' : X_Doc_create,
41 'createText' : X_Doc_createText
50 * X.Node 要素を作成する。この時点でツリーには追加されない。
52 * @param {string} tag タグ名
53 * @param {object} opt_attrs 属性
54 * @param {object} opt_css スタイル
57 function X_Doc_create( tag, opt_attrs, opt_css ){
59 switch( X_Node_getType( tag ) ){
60 case X_Node_TYPE.STRING :
61 X_Node_newByTag = true;
62 return new Node( tag, opt_attrs, opt_css );
63 case X_Node_TYPE.HTML_STRING :
64 list = X_HtmlParser_parse( tag, true );
65 for( i = list.length; 1 < i; ){
66 list[ --i ][ 'kill' ]();
73 * X.Node テキストを作成する。この時点でツリーには追加されない。
74 * @alias X.Doc.createText
75 * @param {string} textContent
78 function X_Doc_createText( text ){
79 X_Node_newByText = true;
80 return new Node( text );