fix operator bug

master
MaysWind 2019-08-03 02:28:22 +08:00
parent e549b7e3ae
commit c8dd72d151
2 changed files with 6 additions and 6 deletions

View File

@ -93,8 +93,8 @@
contexts[i].callback = function (response) {
results.push(response);
hasSuccess = hasSuccess | response.success;
hasError = hasError | !response.success;
hasSuccess = hasSuccess || response.success;
hasError = hasError || !response.success;
};
promises.push(methodFunc(contexts[i]));

View File

@ -811,8 +811,8 @@
silent: !!silent,
callback: function (response) {
ariaNgCommonService.pushArrayTo(results, response.results);
hasSuccess = hasSuccess | response.hasSuccess;
hasError = hasError | response.hasError;
hasSuccess = hasSuccess || response.hasSuccess;
hasError = hasError || response.hasError;
}
}));
}
@ -823,8 +823,8 @@
silent: !!silent,
callback: function (response) {
ariaNgCommonService.pushArrayTo(results, response.results);
hasSuccess = hasSuccess | response.hasSuccess;
hasError = hasError | response.hasError;
hasSuccess = hasSuccess || response.hasSuccess;
hasError = hasError || response.hasError;
}
}));
}