Skip to content

Commit

Permalink
force close , throw exception Modal is transitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
billchen198318 committed Jan 20, 2017
1 parent 482fdb8 commit b774759
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -1735,10 +1735,12 @@ var Modal = function ($) {

Modal.prototype.show = function show(relatedTarget) {
var _this9 = this;


/*
if (this._isTransitioning) {
throw new Error('Modal is transitioning');
}
*/

if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
this._isTransitioning = true;
Expand Down Expand Up @@ -1787,9 +1789,11 @@ var Modal = function ($) {
event.preventDefault();
}

/*
if (this._isTransitioning) {
throw new Error('Modal is transitioning');
}
*/

var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE);
if (transition) {
Expand Down

0 comments on commit b774759

Please sign in to comment.