Roo/Element.js
authorAlan Knowles <alan@roojs.com>
Wed, 14 Dec 2011 09:28:18 +0000 (17:28 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 14 Dec 2011 09:28:18 +0000 (17:28 +0800)
Roo/Element.js

index 3783203..949e800 100644 (file)
@@ -2086,7 +2086,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));
                 }