ux/Lightbox.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 05:17:08 +0000 (13:17 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 05:17:08 +0000 (13:17 +0800)
ux/Lightbox.js

index 92a74c2..9e806c0 100644 (file)
@@ -169,7 +169,9 @@ Roo.apply(Roo.ux.Lightbox.prototype,
         //Roo.get('overlay').on('click', this.end, this);
                Roo.get('lightbox').hide();
         Roo.get('lightbox').on('click',  function(event) { 
-                if (event.element().id == 'lightbox') this.end(); 
+                if (event.getTarget().id == 'lightbox') {
+                    this.end(); 
+                }
             }, this);
             
                Roo.get('outerImageContainer').setStyle({ width: size, height: size });