Merge pull request #159 from wesssel/master

load merge from lodash instead of whole module
This commit is contained in:
Rodrigo Fernandes 2018-01-10 18:33:10 +00:00 committed by GitHub
commit 60ee73bf8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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