X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F01_core%2F16_XViewPort.js;h=a290fead269b3760e31affdbbc047f7c356dbf78;hb=dad4215398716c9913e80ec902c76db6762c1dce;hp=6b655ce7ebb6b855cd50d2548601bf4d381dcef1;hpb=4afbf1b687e035eaf2c6b8bbf14e3c443d843d4e;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/01_core/16_XViewPort.js b/0.6.x/js/01_core/16_XViewPort.js index 6b655ce..a290fea 100644 --- a/0.6.x/js/01_core/16_XViewPort.js +++ b/0.6.x/js/01_core/16_XViewPort.js @@ -51,20 +51,20 @@ X_ViewPort = X_Class_override( 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; @@ -72,7 +72,7 @@ X_ViewPort = X_Class_override( 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; }; @@ -287,16 +287,14 @@ X.ViewPort = { 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 = @@ -314,8 +312,8 @@ X.ViewPort = { 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();