Roo/BasicDialog.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 19 Oct 2010 09:50:51 +0000 (17:50 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 19 Oct 2010 09:50:51 +0000 (17:50 +0800)
Roo/BasicDialog.js

index 8194b8f..53dca26 100644 (file)
@@ -934,7 +934,9 @@ Roo.extend(Roo.BasicDialog, Roo.util.Observable, {
         if(this.shim) {
           this.shim.hide();
         }
-        if(this.animateTarget){
+        // sometimes animateTarget seems to get set.. causing problems...
+        // this just double checks..
+        if(this.animateTarget && Roo.get(this.animateTarget)) {
            this.animHide(callback);
         }else{
             this.el.hide();