guard against calling an undefined function
This commit is contained in:
parent
20959f84ae
commit
6f89156415
@ -22,6 +22,7 @@ define([
|
||||
http.send();
|
||||
};
|
||||
Feedback.send = function (action, force, cb) {
|
||||
if (typeof(cb) !== 'function') { cb = function () {}; }
|
||||
if (AppConfig.disableFeedback) { return void cb(); }
|
||||
if (!action) { return void cb(); }
|
||||
if (force !== true) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user