orionjs
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -308,4 +308,7 @@ //-------------------------------------------------------------------------------------------------------------------------------------- | ||
for(var d = 0; d < mutation.addedNodes.length; d++) { | ||
if(mutation.addedNodes[d].getAttribute("data-state")) { | ||
initDataState(mutation.addedNodes[d]); | ||
// Check if we're dealing with an element node | ||
if(typeof mutation.addedNodes[d].getAttribute === 'function') { | ||
if(mutation.addedNodes[d].getAttribute("data-state")) { | ||
initDataState(mutation.addedNodes[d]); | ||
} | ||
} | ||
@@ -312,0 +315,0 @@ } |
{ | ||
"name": "orionjs", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Luke Harrison", | ||
@@ -5,0 +5,0 @@ "description": "OrionJS is a simple collection of reusable functions to help streamline DOM manipulation in UI development.", |
33827
669