OSDN Git Service

Version 0.6.157, add X.Net.Form & fix X.EventDispatcher.
[pettanr/clientJs.git] / 0.6.x / js / 05_util / 01_XNinjaIframe.js
index b3cb362..8507c5e 100644 (file)
@@ -75,11 +75,16 @@ X[ 'Util' ][ 'NinjaIframe' ] = Node[ 'inherits' ](
                        if( !opt_contentHTML && opt_contentHTML !== '' ) return this;\r
                        \r
                        this._contentHTML = opt_contentHTML;\r
-                       X_UA[ 'IE' ] < 9 || X_Util_NinjaIframe_writeToIframe( this );\r
+\r
+                       if( !( X_UA[ 'IE' ] < 9 ) ){\r
+                               X_Util_NinjaIframe_writeToIframe( this );\r
+                               this._ready = true;\r
+                       };\r
                        \r
                        return this;\r
                },\r
                \r
+               // TODO close -> kill\r
                'close' : function(){\r
                        X_ViewPort[ 'unlisten' ]( X_EVENT_AFTER_UPDATE, this, X_Util_NinjaIframe_handleEvent );\r
                        this.call( 'close' );\r
@@ -137,7 +142,6 @@ function X_Util_NinjaIframe_writeToIframe( that ){
                html = that._contentHTML;\r
                \r
        delete that._contentHTML;\r
-       that._ready = true;\r
 \r
        idoc.open();\r
        idoc.writeln( html );\r