OSDN Git Service

Version 0.6.95, fix X.Timer, fix xhr @opera11-, fix for touch device.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 22_XDomBuilder.js
index daa50fb..efa4a8d 100644 (file)
@@ -105,7 +105,7 @@ if( X.UA.Opera7 ){
  * http://kojs.sukobuto.com/docs/visible-binding\r
  * IE6 には、「空の span エレメントに続く空白は無視される」という謎な癖があります。 \r
  */\r
-X.Dom.listenOnce( X.Dom.Event.DOM_PRE_INIT,\r
+X.Dom.listenOnce( X_TEMP.SYSTEM_EVENT_PRE_INIT,\r
        X_UA_DOM.W3C ?\r
 (function(){\r
        var r    = Node._body,\r
@@ -245,7 +245,7 @@ X_TEMP.asyncCreateTree = function ( parent, elems, elmProgress, async ){
                l           = async ? 0           : xnodes.length,\r
                stack       = async ? async.stack : [],\r
                done        = async ? async.done  : 0,\r
-               startTime   = X.getTime(),              \r
+               startTime   = X_Timer_now(),            \r
                current     = async ? async.current : {\r
                        me     : parent,\r
                        xnodes : xnodes,\r
@@ -282,7 +282,7 @@ X_TEMP.asyncCreateTree = function ( parent, elems, elmProgress, async ){
                                        continue;\r
                                };\r
                                \r
-                               if( startTime + 16 <= X.getTime() ){\r
+                               if( startTime + 16 <= X_Timer_now() ){\r
                                        current.i = i;\r
                                        if( async ){\r
                                                async.current = i < l && current;\r
@@ -299,7 +299,7 @@ X_TEMP.asyncCreateTree = function ( parent, elems, elmProgress, async ){
                current = null;\r
        };\r
        // complete\r
-       X.Dom.asyncDispatch( 0, X.Dom.Event.DOM_BUILDER_COMPLETE );\r
+       X.Dom.asyncDispatch( 0, X_TEMP.SYSTEM_EVENT_XTREE );\r
        elmProgress.parentNode ? elmProgress.parentNode.removeChild( elmProgress ) : ( elmProgress.outerHTML = '' );\r
        delete X_TEMP.asyncCreateTree;\r
        delete X_TEMP.bindElementToXnode;\r
@@ -534,8 +534,8 @@ X_TEMP.bindElementToXnode =
                        };\r
                \r
                        // textNode がある\r
-                       ( current.flag & 6 ) && ( parent._dirty |= X.Dom.Dirty.IE4_TEXTNODE_FIX );\r
+                       ( current.flag & 6 ) && ( parent._dirty |= X_Node_Dirty.IE4_TEXTNODE_FIX );\r
                });\r
 \r
 console.log( 'X.Dom.Builder' );\r
-console.log( 'bootTime : ' + ( X.getTime() - X.bootTime ) );
\ No newline at end of file
+console.log( 'bootTime : ' + ( X_Timer_now() - X.bootTime ) );
\ No newline at end of file