Comparing version 0.8.2 to 0.8.3
{ | ||
"name": "bemer", | ||
"description": "Template engine. BEMJSON to HTML processor.", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "ignore": [ |
@@ -231,3 +231,3 @@ definer('Match', /** @exports Match */ function(Selector, object, is) { | ||
_anyMod: function(patternName, patternVal, mods) { | ||
if(!patternName && !mods) { | ||
if(!patternName && (!mods || object.isEmpty(mods))) { | ||
return true; | ||
@@ -240,3 +240,3 @@ } | ||
return object.isEmpty(mods) || Object.keys(mods).some(function(name) { | ||
return Object.keys(mods).some(function(name) { | ||
return this._mod(patternName, patternVal, name, mods[name]); | ||
@@ -243,0 +243,0 @@ }, this); |
definer('Template', /** @exports Template */ function( /* jshint maxparams: false */ | ||
Match, classify, Node, Selector, Helpers, object, string, is | ||
Match, classify, Node, Selector, Helpers, object, array, string, is | ||
) { | ||
@@ -233,3 +233,7 @@ | ||
if(!is.function(val)) { | ||
modes[name] = function() { return val; }; | ||
modes[name] = function() { | ||
if(is.array(val)) return array.deepClone(val); | ||
if(is.map(val)) return object.deepClone(val); | ||
return val; | ||
}; | ||
modes[name].__wrapped__ = true; | ||
@@ -236,0 +240,0 @@ } |
{ | ||
"name": "bemer", | ||
"description": "Template engine. BEMJSON to HTML processor.", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
4758340
77
6292