concat with changes
This commit is contained in:
parent
bfa6571e7c
commit
f7bb70c0d5
@ -204,11 +204,19 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
|||||||
self = this;
|
self = this;
|
||||||
|
|
||||||
this.events[event] = function() {
|
this.events[event] = function() {
|
||||||
callback.apply(self);
|
callback.apply(self, [{}]);
|
||||||
existingCallback();
|
existingCallback();
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
removeEventListener: function(event, callback) {
|
||||||
|
var existingCallback = this.events[event];
|
||||||
|
|
||||||
|
if(existingCallback){
|
||||||
|
delete this.events[event];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
status: null,
|
status: null,
|
||||||
|
|
||||||
send: function(data) {
|
send: function(data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user