break;
case 'visibilitychange' :
- X_ViewPort.asyncDispatch( ( X_ViewPort_active = document[ 'hidden' ] ) ? X.Event.VIEW_DEACTIVATE : X.Event.VIEW_ACTIVATE );
+ X_ViewPort.dispatch( ( X_ViewPort_active = document[ 'hidden' ] ) ? X.Event.VIEW_DEACTIVATE : X.Event.VIEW_ACTIVATE );
break;
case 'mozvisibilitychange' :
- X_ViewPort.asyncDispatch( ( X_ViewPort_active = document[ 'mozHidden' ] ) ? X.Event.VIEW_DEACTIVATE : X.Event.VIEW_ACTIVATE );
+ X_ViewPort.dispatch( ( X_ViewPort_active = document[ 'mozHidden' ] ) ? X.Event.VIEW_DEACTIVATE : X.Event.VIEW_ACTIVATE );
break;
case 'webkitvisibilitychange' :
- X_ViewPort.asyncDispatch( ( X_ViewPort_active = document[ 'webkitHidden' ] ) ? X.Event.VIEW_DEACTIVATE : X.Event.VIEW_ACTIVATE );
+ X_ViewPort.dispatch( ( X_ViewPort_active = document[ 'webkitHidden' ] ) ? X.Event.VIEW_DEACTIVATE : X.Event.VIEW_ACTIVATE );
break;
case 'pageshow' :
case 'focus' :
if( !X_ViewPort_active ){
X_ViewPort_active = true;
- X_ViewPort.asyncDispatch( X.Event.VIEW_ACTIVATE );
+ X_ViewPort.dispatch( X.Event.VIEW_ACTIVATE );
};
break;
case 'blur' :
if( X_ViewPort_active ){
X_ViewPort_active = false;
- X_ViewPort.asyncDispatch( X.Event.VIEW_DEACTIVATE );
+ X_ViewPort.dispatch( X.Event.VIEW_DEACTIVATE );
};
break;
};
X_ViewPort_rootElement = document.compatMode !== 'CSS1Compat' ? elmBody : elmHtml || elmBody;
html = X.Doc.html = X_Node_html = elmHtml && new Node( elmHtml );
-
+ html._flags |= X_Node_State.IN_TREE;
+
head = X.Doc.head = X_Node_head = elmHead && new Node( elmHead );
body = X.Doc.body = X_Node_body = new Node( elmBody );
-
- body._root = html._root = head._root = body;// _root は html だろ
+
body.parent = head.parent = html;
- html._xnodes = [ head, body ];
-
- Node.root = body; // 後方互換
+ html._xnodes = [ head, body ];
html.appendTo = html.appendToRoot = html.before = html.after = html.clone = html.remove = html.destroy = html.prevNode = html.nextNode =
html.create = html.createText = html.createAt = html.createTextAt = html.append = html.appendAt = html.empty = html.html = html.text =
X_ViewPort_readyState = X_TEMP.SYSTEM_EVENT_INIT;
//X_UA.Opera7 && alert( 'bc' );
X_Node_body.appendAt( 0,
- X_Node_systemNode = Node.create( 'div', { 'class' : 'hidden-system-node' } ),
- X_Node_fontSizeNode = Node.create( 'div', { 'class' : 'hidden-system-node' } ).cssText( 'line-height:1;height:1em;' ).text( 'X' )
+ X_Node_systemNode = X_Doc_create( 'div', { 'class' : 'hidden-system-node' } ),
+ X_Node_fontSizeNode = X_Doc_create( 'div', { 'class' : 'hidden-system-node' } ).cssText( 'line-height:1;height:1em;' ).text( 'X' )
);
X_Node_startUpdate();