Recursively apply defaults
This closes https://github.com/select2/select2/pull/4130.
This commit is contained in:
parent
65179f16de
commit
983cd8e765
2
src/js/select2/defaults.js
vendored
2
src/js/select2/defaults.js
vendored
@ -55,7 +55,7 @@ define([
|
|||||||
}
|
}
|
||||||
|
|
||||||
Defaults.prototype.apply = function (options) {
|
Defaults.prototype.apply = function (options) {
|
||||||
options = $.extend({}, this.defaults, options);
|
options = $.extend(true, {}, this.defaults, options);
|
||||||
|
|
||||||
if (options.dataAdapter == null) {
|
if (options.dataAdapter == null) {
|
||||||
if (options.ajax != null) {
|
if (options.ajax != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user