Bladeren bron

subnode test

Ivan Asmer 8 jaren geleden
bovenliggende
commit
889a9aaafa
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      static/nb.js

+ 1 - 1
static/nb.js

@@ -55,7 +55,7 @@ function nbInit(a,b){
 
             var items = searchElement(root, selector);
             for (var i=0,item=items[i];i<items.length;i++,item=items[i]){
-                if (direction == "write" &&  Array.isArray($s[selector]) && (item.children.length == 0 || (items.length == $s[selector].length))){
+                if (direction == "write" &&  Array.isArray($s[selector]) && (item.children.length == 0 || (items.length == $s[selector].length && items.length > 1))){
                     callback(item, $s, selector, $s[selector][i]);
                 }
                 else {