|
@@ -91,7 +91,7 @@ function nbInit(a,b){
|
|
nBind(function (item, $s, selector, value, key, thisByClass){
|
|
nBind(function (item, $s, selector, value, key, thisByClass){
|
|
value = typeof value === 'undefined' ? $s[selector] : value;
|
|
value = typeof value === 'undefined' ? $s[selector] : value;
|
|
var keyExists = typeof key !== 'undefined';
|
|
var keyExists = typeof key !== 'undefined';
|
|
- if ((!item.children.length && !Array.isArray(value) && typeof value === 'object') || thisByClass){ //hash array on single leaf node -> set attrs on the tag
|
|
|
|
|
|
+ if ((!item.children.length && !Array.isArray(value) && typeof value === 'object') || thisByClass && value){ //hash array on single leaf node -> set attrs on the tag
|
|
recursiveObjectSet(item,value);
|
|
recursiveObjectSet(item,value);
|
|
//for (var key in value){
|
|
//for (var key in value){
|
|
//item[key] = value[key];
|
|
//item[key] = value[key];
|