equal
deleted
inserted
replaced
46 } |
46 } |
47 return this; |
47 return this; |
48 }, |
48 }, |
49 |
49 |
50 addErrback: function(callback) { |
50 addErrback: function(callback) { |
51 if (this._req.readyState == 4) { |
51 if (this._req.readyState == 4 && this._error) { |
52 if (this._error) { |
52 callback.apply(null, [this._error, this._req]); |
53 callback.apply(null, [this._error, this._req]); |
|
54 } |
|
55 } |
53 } |
56 else { |
54 else { |
57 this._onFailure.push([callback, cw.utils.sliceList(arguments, 1)]); |
55 this._onFailure.push([callback, cw.utils.sliceList(arguments, 1)]); |
58 } |
56 } |
59 return this; |
57 return this; |