Remember to run jshint before you push...
This commit is contained in:
parent
a1c2859baf
commit
e540fcfaef
@ -65,7 +65,9 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
||||
|
||||
function wrapProgressEvent(xhr, eventName) {
|
||||
return function() {
|
||||
xhr[eventName] && xhr[eventName]();
|
||||
if (xhr[eventName]) {
|
||||
xhr[eventName]();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,9 @@ getJasmineRequireObj().AjaxFakeRequest = function() {
|
||||
|
||||
function wrapProgressEvent(xhr, eventName) {
|
||||
return function() {
|
||||
xhr[eventName] && xhr[eventName]();
|
||||
if (xhr[eventName]) {
|
||||
xhr[eventName]();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user