Remember to run jshint before you push...

This commit is contained in:
slackersoft 2014-11-07 08:07:40 -08:00
parent a1c2859baf
commit e540fcfaef
2 changed files with 6 additions and 2 deletions

View File

@ -65,7 +65,9 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
function wrapProgressEvent(xhr, eventName) {
return function() {
xhr[eventName] && xhr[eventName]();
if (xhr[eventName]) {
xhr[eventName]();
}
};
}

View File

@ -20,7 +20,9 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
function wrapProgressEvent(xhr, eventName) {
return function() {
xhr[eventName] && xhr[eventName]();
if (xhr[eventName]) {
xhr[eventName]();
}
};
}