mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
refactor: use _.assign
This commit is contained in:
+3
-2
@@ -148,8 +148,9 @@ function matchRightBracket(str, begin) {
|
||||
}
|
||||
|
||||
exports.factory = function(_ctx, opts) {
|
||||
opts = opts || {};
|
||||
opts.strict = opts.strict || false;
|
||||
opts = _.assign({
|
||||
strict: false
|
||||
}, opts);
|
||||
|
||||
var scope = Object.create(Scope);
|
||||
scope.opts = opts;
|
||||
|
||||
Reference in New Issue
Block a user