Comparing version 0.1.3 to 0.2.0
{ | ||
"name": "bemer", | ||
"description": "Template engine. BEMJSON to HTML processor.", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "ignore": [ |
@@ -226,9 +226,5 @@ definer('Template', /** @exports Template */ function(Match, classify, Node, Name, Helpers, object, string, is) { | ||
* | ||
* Значения в виде массивов конкатенируются. | ||
* Если значение в шаблоне скалярное, то массивы конкатенируются, | ||
* а объекты (карты) наследуются с приоритетом у BEMJSON. | ||
* | ||
* Значения в виде объектов (карт) наследуются. | ||
* | ||
* Если значение в шаблоне скалярное, то приоритет у BEMJSON. | ||
* Если значение в шаблоне задано функцией, то приоритет у шаблона. | ||
* | ||
* @private | ||
@@ -246,8 +242,8 @@ * @param {Object} modes Экземпляр класса по модам | ||
if(is.array(val, bemjsonVal)) { | ||
return bemjsonVal.concat(val); | ||
} else if(is.map(val, bemjsonVal)) { | ||
return isValFunc | ||
? object.extend(bemjsonVal, val) | ||
: object.extend(object.clone(val), bemjsonVal); | ||
if(!isValFunc) { | ||
if(is.array(val, bemjsonVal)) { | ||
priorityVal = bemjsonVal.concat(val); | ||
} else if(is.map(val, bemjsonVal)) { | ||
priorityVal = object.extend(object.clone(val), bemjsonVal); | ||
} | ||
} | ||
@@ -254,0 +250,0 @@ |
{ | ||
"name": "bemer", | ||
"description": "Template engine. BEMJSON to HTML processor.", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"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 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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
627598
71
1
1162
5319