Pārlūkot izejas kodu

this element by class name binding

Ivan Asmer 8 gadi atpakaļ
vecāks
revīzija
dbd92e68a2
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      static/nb.js

+ 3 - 0
static/nb.js

@@ -127,6 +127,9 @@ function nbInit(a,b){
                             for (var i=0;i<classSubnodes.length;i++){
                                 arguments.callee(classSubnodes[i], $s, selector, value[key]); // recursively fill subnode with that data. No reason to pass a key, because key are class selector, not value for option
                             }
+                            if (item.classList.contains(key)){
+                                arguments.callee(item, $s, selector, value[key]); // recursively fill subnode with that data. No reason to pass a key, because key are class selector, not value for option
+                            }
                         }
                         return;
                     }