roojs-core-debug.js
[roojs1] / roojs-debug.js
index 20fdc53..01de5d2 100644 (file)
@@ -8874,7 +8874,7 @@ if(opt.anim.isAnimated()){
             // we wander
             var z = 0;
             var dom = this.dom
-            while (dom) {
+            while (dom && dom.style) {
                 if (!isNaN(parseInt(dom.style.zIndex))) {
                     z = Math.max(z, parseInt(dom.style.zIndex));
                 }