diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2017-06-20 20:50:36 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2017-06-20 20:52:25 +0530 |
commit | f006edeb940e8636bab012f098f0aa125c72c4a6 (patch) | |
tree | 2524b208542ab1c42d380de358bc35a98c599d01 | |
parent | 770175c5e9609cfba857583711d311036fa34bd2 (diff) | |
download | rails-f006edeb940e8636bab012f098f0aa125c72c4a6.tar.gz rails-f006edeb940e8636bab012f098f0aa125c72c4a6.tar.bz2 rails-f006edeb940e8636bab012f098f0aa125c72c4a6.zip |
[ci skip] Fixed the attribute name for event.detail
-rw-r--r-- | guides/source/working_with_javascript_in_rails.md | 6 |
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 | |---------------------|---------------------------------|-------------------------------------------------------------| |