Skip to content

Commit

Permalink
Remember to run jshint before you push...
Browse files Browse the repository at this point in the history
  • Loading branch information
slackersoft committed Nov 7, 2014
1 parent a1c2859 commit e540fcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/mock-ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ getJasmineRequireObj().AjaxFakeRequest = function() {

function wrapProgressEvent(xhr, eventName) {
return function() {
xhr[eventName] && xhr[eventName]();
if (xhr[eventName]) {
xhr[eventName]();
}
};
}

Expand Down
4 changes: 3 additions & 1 deletion src/fakeRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ getJasmineRequireObj().AjaxFakeRequest = function() {

function wrapProgressEvent(xhr, eventName) {
return function() {
xhr[eventName] && xhr[eventName]();
if (xhr[eventName]) {
xhr[eventName]();
}
};
}

Expand Down

0 comments on commit e540fcf

Please sign in to comment.