OSDN Git Service

Version 0.6.114, add AudioSprite, etc.
[pettanr/clientJs.git] / 0.6.x / js / 05_util / 01_XNinjaIframe.js
index 93f62f1..8a026f0 100644 (file)
@@ -3,6 +3,7 @@
  * 孤立するとウィンドウ オブジェクトのプロパティが消去される\r
  */\r
 \r
+// TODO Node.inherits\r
 X.Util.NinjaIframe = X.EventDispatcher.inherits(\r
        'NinjaIframe',\r
        {\r
@@ -26,8 +27,9 @@ X.Util.NinjaIframe = X.EventDispatcher.inherits(
                                {\r
                                        className         : 'hidden-iframe',\r
                                        scrolling         : 'no',\r
+                                       allowtransparency : 'no',                                       \r
                                        frameborder       : 0,\r
-                                       allowtransparency : 'no',\r
+                                       tabindex          : -1,\r
                                        name              : this._name,\r
                                        id                : this._name\r
                                }\r
@@ -59,7 +61,7 @@ X.Util.NinjaIframe = X.EventDispatcher.inherits(
                                        // こちらに名前をsetしないとtargetが動作しない\r
                                        this._iwin.name = this._name;\r
                                        \r
-                                       this.xnodeIframe.listen( X_UA.IE < 9 ? [ 'readystatechange', 'error' ] : [ 'load', 'error' ], this );\r
+                                       this.xnodeIframe.listen( [ X_UA.IE < 9 ? 'readystatechange' : 'load', 'error' ], this );\r
                                        \r
                                        if( !( X_UA.IE < 9 ) ){\r
                                                this._html && X_Util_NinjaIframe_writeToIframe( this );\r
@@ -73,7 +75,7 @@ X.Util.NinjaIframe = X.EventDispatcher.inherits(
                                        if( !this._ready ){\r
                                                this._html && X_Util_NinjaIframe_writeToIframe( this );\r
                                                this._ready = true;\r
-                                               return;                 \r
+                                               return;\r
                                        };\r
                                        // onload\r
                                case 'load' :\r