Browse Source

Merge pull request #627 from robertoles/master

Closing a modal throws an error when the transitions module isn't available
pull/622/merge
Jack Lukic 11 years ago
parent
commit
07a408231c
1 changed files with 5 additions and 3 deletions
  1. 8
      src/modules/modal.js

8
src/modules/modal.js

@ -305,9 +305,11 @@ $.fn.modal = function(parameters) {
; ;
} }
$dimmable.dimmer('hide', function() { $dimmable.dimmer('hide', function() {
$module
.transition('reset')
;
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
$module
.transition('reset')
;
}
module.remove.active(); module.remove.active();
}); });
}, },

Loading…
Cancel
Save