this._iwin.location.reload();\r
};\r
\r
- if( !opt_contentHTML ) return this;\r
+ 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
this[ 'listen' ]( [ X_UA[ 'IE' ] < 9 ? 'readystatechange' : 'load', 'error' ], this, X_Util_NinjaIframe_handleEvent );\r
\r
if( !( X_UA[ 'IE' ] < 9 ) ){\r
- this._contentHTML && X_Util_NinjaIframe_writeToIframe( this );\r
+ ( this._contentHTML || this._contentHTML === '' ) && X_Util_NinjaIframe_writeToIframe( this );\r
this._ready = true;\r
return;\r
};\r
if( ( raw.readyState !== 'complete' && raw.readyState !== 'loaded' ) ) break;\r
// ie9-\r
if( !this._ready ){\r
- this._contentHTML && X_Util_NinjaIframe_writeToIframe( this );\r
+ ( this._contentHTML || this._contentHTML === '' ) && X_Util_NinjaIframe_writeToIframe( this );\r
this._ready = true;\r
break;\r
};\r
// onload\r
case 'load' :\r
console.log( 'iframe load.' );\r
- this[ 'asyncDispatch' ]( X_EVENT_SUCCESS );\r
+ this[ 'asyncDispatch' ]( 'ninjaload' );\r
break;\r
\r
case 'error' :\r
- this[ 'asyncDispatch' ]( X_EVENT_ERROR );\r
+ this[ 'asyncDispatch' ]( 'ninjaerror' );\r
break;\r
};\r
\r
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