From 3e01c1859d833add2db5fedc7a275c8b6b50003b Mon Sep 17 00:00:00 2001 From: jpjoyal Date: Mon, 4 Jun 2012 14:25:11 -0400 Subject: [PATCH] Fix IE8 error when a dialog with effect closes use closure instead of IE's broken setTimeout argument passing --- lib/components/dialog/dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/dialog/dialog.js b/lib/components/dialog/dialog.js index 9401439..7c33b6a 100644 --- a/lib/components/dialog/dialog.js +++ b/lib/components/dialog/dialog.js @@ -225,9 +225,9 @@ Dialog.prototype.hide = function(ms){ // hide / remove this.el.addClass('hide'); if (this._effect) { - setTimeout(function(self){ + setTimeout(function(){ self.remove(); - }, 500, this); + }, 500); } else { self.remove(); }