Permalink
Browse files

build

  • Loading branch information...
1 parent eb88596 commit 19731e2f65fad14b0162e57a8516a995b9ec0ce9 @tj tj committed May 4, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 build/ui.js
View
@@ -158,7 +158,7 @@ function Dialog(options) {
this.template = html;
this.el = $(this.template);
this.render(options);
- if (active) active.hide();
+ if (active && !active.hiding) active.hide();
if (Dialog.effect) this.effect(Dialog.effect);
active = this;
};
@@ -316,6 +316,9 @@ Dialog.prototype.show = function(){
Dialog.prototype.hide = function(ms){
var self = this;
+ // prevent thrashing
+ this.hiding = true;
+
// duration
if (ms) {
setTimeout(function(){

0 comments on commit 19731e2

Please sign in to comment.