load merge from lodash instead of whole module

This commit is contained in:
wesssel 2018-01-10 18:07:46 +09:00
parent 25631b3ed7
commit ffbb530f81

View file

@ -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;
}; };