mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 00:42:15 +02:00
Merge pull request #241 from Hacktivista/set-user-defaults-2
Allow user to set his own defaults (simpler)
This commit is contained in:
commit
f29307ec47
|
@ -128,7 +128,7 @@ class Choices {
|
|||
};
|
||||
|
||||
// Merge options with user options
|
||||
this.config = extend(defaultConfig, userConfig);
|
||||
this.config = extend(defaultConfig, Choices.userDefaults, userConfig);
|
||||
|
||||
if (this.config.renderSelectedChoices !== 'auto' && this.config.renderSelectedChoices !== 'always') {
|
||||
if (!this.config.silent) {
|
||||
|
@ -2867,4 +2867,6 @@ class Choices {
|
|||
/* ===== End of Private functions ====== */
|
||||
}
|
||||
|
||||
Choices.userDefaults = {};
|
||||
|
||||
module.exports = Choices;
|
||||
|
|
Loading…
Reference in a new issue