Fix usage of apply function
issue5666 review22121003
This commit is contained in:
1 parent
df5af34323
commit
7225b275e8
1 file changed
+4
-4
+4
-4
@@ -794,7 +794,7 @@
|
||||
}
|
||||
}
|
||||
this.set_default(values);
|
||||
jQuery.when.apply(promises).then(function() {
|
||||
jQuery.when.apply(jQuery, promises).then(function() {
|
||||
dfd.resolve(values);
|
||||
});
|
||||
}.bind(this));
|
||||
@@ -835,7 +835,7 @@
|
||||
this._loaded[fname] = true;
|
||||
fieldnames.push(fname);
|
||||
}
|
||||
return jQuery.when.apply(promises).then(function() {
|
||||
return jQuery.when.apply(jQuery, promises).then(function() {
|
||||
return this.on_change(fieldnames).then(function() {
|
||||
return this.on_change_with(fieldnames).then(function() {
|
||||
var callback = function() {
|
||||
@@ -1024,7 +1024,7 @@
|
||||
}
|
||||
promises.push(this.do_autocomplete(fname));
|
||||
}
|
||||
return jQuery.when.apply(promises);
|
||||
return jQuery.when.apply(jQuery, promises);
|
||||
},
|
||||
do_autocomplete: function(fieldname) {
|
||||
this.autocompletion[fieldname] = [];
|
||||
@@ -1838,7 +1838,7 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
return jQuery.when.apply(promises);
|
||||
return jQuery.when.apply(jQuery, promises);
|
||||
};
|
||||
return prm.then(set_value);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user