Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 4, 2012
1 parent eb88596 commit 19731e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/ui.js
Expand Up @@ -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;
};
Expand Down Expand Up @@ -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(){
Expand Down

0 comments on commit 19731e2

Please sign in to comment.