1
0
mirror of synced 2024-11-23 05:26:10 +03:00

Recursively apply defaults

This closes https://github.com/select2/select2/pull/4130.
This commit is contained in:
Bruno Sampaio 2016-02-14 13:58:14 -05:00 committed by Kevin Brown
parent 65179f16de
commit 983cd8e765

View File

@ -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) {