Merge branch 'master' of https://github.com/illiptic/jasmine-ajax into illiptic-master
This commit is contained in:
commit
ef26ab41af
@ -204,11 +204,19 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
||||
self = this;
|
||||
|
||||
this.events[event] = function() {
|
||||
callback.apply(self);
|
||||
callback.apply(self, [{}]);
|
||||
existingCallback();
|
||||
};
|
||||
},
|
||||
|
||||
removeEventListener: function(event, callback) {
|
||||
var existingCallback = this.events[event];
|
||||
|
||||
if(existingCallback){
|
||||
delete this.events[event];
|
||||
}
|
||||
},
|
||||
|
||||
status: null,
|
||||
|
||||
send: function(data) {
|
||||
|
@ -159,11 +159,19 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
||||
self = this;
|
||||
|
||||
this.events[event] = function() {
|
||||
callback.apply(self);
|
||||
callback.apply(self, [{}]);
|
||||
existingCallback();
|
||||
};
|
||||
},
|
||||
|
||||
removeEventListener: function(event, callback) {
|
||||
var existingCallback = this.events[event];
|
||||
|
||||
if(existingCallback){
|
||||
delete this.events[event];
|
||||
}
|
||||
},
|
||||
|
||||
status: null,
|
||||
|
||||
send: function(data) {
|
||||
|
Loading…
Reference in New Issue
Block a user