OSDN Git Service

Version 0.6.167, add X.Audio.canPlay.
[pettanr/clientJs.git] / 0.6.x / js / 05_util / 01_XNinjaIframe.js
index 9e3e810..e16f550 100644 (file)
@@ -75,7 +75,11 @@ 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
@@ -136,9 +140,9 @@ function X_Util_NinjaIframe_writeToIframe( that ){
        var raw  = that[ '_rawObject' ],\r
                idoc = raw.contentDocument || that._iwin.document,\r
                html = that._contentHTML;\r
-               \r
+       \r
+       that._ready = true; // これを削除すると ie6,7,8 で Stack overflow at line : 0 意味不明\r
        delete that._contentHTML;\r
-       that._ready = true;\r
 \r
        idoc.open();\r
        idoc.writeln( html );\r