lib/assets/javascripts/up/modal.js.coffee in upjs-rails-0.14.0 vs lib/assets/javascripts/up/modal.js.coffee in upjs-rails-0.14.1
- old
+ new
@@ -91,10 +91,11 @@
The animation used to open the modal. The animation will be applied
to both the dialog box and the overlay dimming the page.
@param {String} [config.closeAnimation='fade-out']
The animation used to close the modal. The animation will be applied
to both the dialog box and the overlay dimming the page.
+ @stable
###
config = u.config
maxWidth: null
minWidth: null
width: null
@@ -329,9 +330,10 @@
@stable
###
###*
Closes a currently opened modal overlay.
+
Does nothing if no modal is currently open.
Emits events [`up:modal:close`](/up:modal:close) and [`up:modal:closed`](/up:modal:closed).
@function up.modal.close