lib/assets/javascripts/up/syntax.js.coffee in upjs-rails-0.14.1 vs lib/assets/javascripts/up/syntax.js.coffee in upjs-rails-0.15.0
- old
+ new
@@ -302,9 +302,11 @@
This function emits the [`up:fragment:inserted`](/up:fragment:inserted)
event.
@function up.hello
@param {String|Element|jQuery} selectorOrElement
+ @return {jQuery}
+ The compiled element
@stable
###
hello = (selectorOrElement) ->
$element = $(selectorOrElement)
up.emit('up:fragment:inserted', $element: $element)