Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix IE8 error when a dialog with effect closes

use closure instead of IE's broken setTimeout argument passing
  • Loading branch information...
commit 3e01c1859d833add2db5fedc7a275c8b6b50003b 1 parent 475e147
@jpjoyal jpjoyal authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/components/dialog/dialog.js
View
4 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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.