aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/working_with_javascript_in_rails.md
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2017-06-20 20:50:36 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2017-06-20 20:52:25 +0530
commitf006edeb940e8636bab012f098f0aa125c72c4a6 (patch)
tree2524b208542ab1c42d380de358bc35a98c599d01 /guides/source/working_with_javascript_in_rails.md
parent770175c5e9609cfba857583711d311036fa34bd2 (diff)
downloadrails-f006edeb940e8636bab012f098f0aa125c72c4a6.tar.gz
rails-f006edeb940e8636bab012f098f0aa125c72c4a6.tar.bz2
rails-f006edeb940e8636bab012f098f0aa125c72c4a6.zip
[ci skip] Fixed the attribute name for event.detail
Diffstat (limited to 'guides/source/working_with_javascript_in_rails.md')
-rw-r--r--guides/source/working_with_javascript_in_rails.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/working_with_javascript_in_rails.md b/guides/source/working_with_javascript_in_rails.md
index 35e6aea4cf..ed27752a06 100644
--- a/guides/source/working_with_javascript_in_rails.md
+++ b/guides/source/working_with_javascript_in_rails.md
@@ -382,9 +382,9 @@ Rails 5.1 introduced rails-ujs and dropped jQuery as a dependency.
As a result the Unobtrusive JavaScript (UJS) driver has been rewritten to operate without jQuery.
These introductions cause small changes to `custom events` fired during the request:
-NOTE: Signature of calls to UJS’s event handlers have changed.
-Unlike the version with jqeury, all custom events return only one parameter: `event`.
-In this parameter, there is an additional attribute `details` which contains an array of extra parameters.
+NOTE: Signature of calls to UJS’s event handlers has changed.
+Unlike the version with jQuery, all custom events return only one parameter: `event`.
+In this parameter, there is an additional attribute `detail` which contains an array of extra parameters.
| Event name | Extra parameters (event.detail) | Fired |
|---------------------|---------------------------------|-------------------------------------------------------------|