OSDN Git Service

Version 0.6.106, bugfix for X.EventDispatcher, cleanup X.Node, Image JSONP for Opera1...
[pettanr/clientJs.git] / 0.6.x / js / 06_net / 04_XNetImage.js
index 6a90a46..853ec82 100644 (file)
@@ -43,24 +43,15 @@ X_NET_ImageWrapper = X_Class_override(
                        this.abspath = X.URL.toAbsolutePath( data.url );\r
                        this.delay   = data.delay || 100;\r
                        this.timeout = data.timeout || 5000;\r
-                       this.timerID = X.Timer.add( this.delay, 0, this, this._detect );\r
-                       \r
-                       //X_Net_Image_hasImage ? ( this._rawObject.src = this.abspath ) : this.attr( 'src', this.abspath );\r
-                       /*\r
-                       if( X_UA.Opera7 ){\r
-                               X_EventDispatcher_toggleAllEvents( this, false );\r
-                               this._rawObject = new Image();\r
-                               X_EventDispatcher_toggleAllEvents( this, true );\r
-                       }; */\r
-                       \r
+                       //this.timerID = X.Timer.add( this.delay, 0, this, this._detect );\r
+\r
                        this._rawObject.src = this.abspath;\r
-                       //alert( this._rawObject.src + ' ' + this._rawObject.complete );\r
+\r
                        if( X_UA.Opera7 && this._rawObject.complete ){\r
                                this.asyncDispatch( 'load' );\r
                        } else {\r
                                this.timerID = X.Timer.add( this.delay, 0, this, this._detect );\r
                        };\r
-                       //alert( this._rawObject.src + ' ' + this._rawObject.complete );\r
                },\r
                \r
                handleEvent : function( e ){\r
@@ -119,6 +110,7 @@ X_NET_ImageWrapper = X_Class_override(
                cancel : function(){\r
                        // abort がある?\r
                        this._rawObject && this._rawObject.abort && this._rawObject.abort();\r
+                       // this._rawObject.src = '';\r
                        this._busy  = false;\r
                        this.finish = true;\r
                        this.asyncDispatch( X.Event.CANCELED );\r