X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F05_util%2F01_XNinjaIframe.js;h=e16f550d9ad47ac5f13b048df3c4fa85ba9a9872;hb=20c3a948b20e52efc28fd103fc075d787c6d65d2;hp=b3cb362c20adde7b43ad81dabecb9b667a128e66;hpb=36f999435e807f3d04f899b2a84eb1dc31df34b7;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/05_util/01_XNinjaIframe.js b/0.6.x/js/05_util/01_XNinjaIframe.js index b3cb362..e16f550 100644 --- a/0.6.x/js/05_util/01_XNinjaIframe.js +++ b/0.6.x/js/05_util/01_XNinjaIframe.js @@ -75,11 +75,16 @@ X[ 'Util' ][ 'NinjaIframe' ] = Node[ 'inherits' ]( if( !opt_contentHTML && opt_contentHTML !== '' ) return this; this._contentHTML = opt_contentHTML; - X_UA[ 'IE' ] < 9 || X_Util_NinjaIframe_writeToIframe( this ); + + if( !( X_UA[ 'IE' ] < 9 ) ){ + X_Util_NinjaIframe_writeToIframe( this ); + this._ready = true; + }; return this; }, + // TODO close -> kill 'close' : function(){ X_ViewPort[ 'unlisten' ]( X_EVENT_AFTER_UPDATE, this, X_Util_NinjaIframe_handleEvent ); this.call( 'close' ); @@ -135,9 +140,9 @@ function X_Util_NinjaIframe_writeToIframe( that ){ var raw = that[ '_rawObject' ], idoc = raw.contentDocument || that._iwin.document, html = that._contentHTML; - + + that._ready = true; // これを削除すると ie6,7,8 で Stack overflow at line : 0 意味不明 delete that._contentHTML; - that._ready = true; idoc.open(); idoc.writeln( html );