OSDN Git Service

Version 0.6.96. add lock function @X.EventDispatcher.
[pettanr/clientJs.git] / 0.6.x / js / 05_net / 00_XNet.js
index 71c3172..5586e4e 100644 (file)
@@ -84,7 +84,7 @@ var X_NET_TYPE_XHR   = 1,
                                var i = X_NET_QUEUE_LIST.indexOf( this );\r
                                if( i !== -1 ){\r
                                        X_NET_QUEUE_LIST.splice( i, 1 );\r
-                                       this.asyncDispatch( 0, { type : X.Event.CANCELED } );\r
+                                       this.asyncDispatch( { type : X.Event.CANCELED } );\r
                                } else\r
                                if( this === X_NET_currentQueue ){\r
                                        X_NET_currentWrapper.cancel();\r
@@ -111,7 +111,7 @@ function X_NET_proxyDispatch( e ){
                case X.Event.CANCELED :\r
                        console.log( 'q: ' + e.type );\r
                        this.dispatch( e );\r
-                       this.asyncDispatch( 0, { type : X.Event.COMPLETE } );\r
+                       this.asyncDispatch( { type : X.Event.COMPLETE } );\r
                        break;\r
                case X.Event.COMPLETE :\r
                        console.log( 'complete. then kill()' );\r