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() {
|
||||
var lodash = require('lodash');
|
||||
var merge = require('lodash/merge');
|
||||
|
||||
function Utils() {
|
||||
}
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
Utils.prototype.safeConfig = function(cfg, defaultConfig) {
|
||||
var newCfg = {};
|
||||
lodash.merge(newCfg, defaultConfig, cfg);
|
||||
merge(newCfg, defaultConfig, cfg);
|
||||
return newCfg;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue