load merge from lodash instead of whole module
This commit is contained in:
parent
25631b3ed7
commit
ffbb530f81
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var lodash = require('lodash');
|
var merge = require('lodash/merge');
|
||||||
|
|
||||||
function Utils() {
|
function Utils() {
|
||||||
}
|
}
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
Utils.prototype.safeConfig = function(cfg, defaultConfig) {
|
Utils.prototype.safeConfig = function(cfg, defaultConfig) {
|
||||||
var newCfg = {};
|
var newCfg = {};
|
||||||
lodash.merge(newCfg, defaultConfig, cfg);
|
merge(newCfg, defaultConfig, cfg);
|
||||||
return newCfg;
|
return newCfg;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue