orionjs
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -313,5 +313,14 @@ //-------------------------------------------------------------------------------------------------------------------------------------- | ||
if(typeof mutation.addedNodes[d].getAttribute === 'function') { | ||
// grab any child elements of added node with data-state | ||
var dataStateChildren = mutation.addedNodes[d].querySelectorAll("[data-state]"); | ||
// If added node has data-state | ||
if(mutation.addedNodes[d].getAttribute("data-state")) { | ||
initDataState(mutation.addedNodes[d]); | ||
} | ||
// Apply event listeners to relevant child elements | ||
else if(dataStateChildren) { | ||
for(var i = 0; i < dataStateChildren.length; i++) { | ||
initDataState(dataStateChildren[i]); | ||
} | ||
} | ||
} | ||
@@ -318,0 +327,0 @@ } |
{ | ||
"name": "orionjs", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": "Luke Harrison", | ||
@@ -5,0 +5,0 @@ "description": "OrionJS is a simple collection of reusable functions to help streamline DOM manipulation in UI development.", |
34807
679