aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorWonseop Kim <wonseop.kim@samsung.com>2020-05-05 17:49:27 +0900
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-05-05 13:04:46 +0200
commit9b8cadc73699a406d4835f77e244ad41c710c4c2 (patch)
tree38f9ca7b9c67aa700983974e3ba3b700de590cb8 /src/event.js
parent9908b7aaceb7b313af05d3814fca9cb0f45ce9d2 (diff)
downloadjquery-9b8cadc73699a406d4835f77e244ad41c710c4c2.tar.gz
jquery-9b8cadc73699a406d4835f77e244ad41c710c4c2.zip
Build: Correct code indentations based on jQuery Style Guide
1. Correct code indentations based on jQuery Style Guide (contribute.jquery.org/style-guide/js/#spacing). 2. Add rules to "src/.eslintrc.json" to enable "enforcing consistent indentation", with minimal changes to the current code. Closes gh-4672 (cherry picked from 3d62d5704989f17d3a20ae7521d52e9c8c60b4ee)
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.js b/src/event.js
index 6510d6a30..99ea0fdb8 100644
--- a/src/event.js
+++ b/src/event.js
@@ -315,8 +315,8 @@ jQuery.event = {
event = jQuery.event.fix( nativeEvent ),
handlers = (
- dataPriv.get( this, "events" ) || Object.create( null )
- )[ event.type ] || [],
+ dataPriv.get( this, "events" ) || Object.create( null )
+ )[ event.type ] || [],
special = jQuery.event.special[ event.type ] || {};
// Use the fix-ed jQuery.Event rather than the (read-only) native event
@@ -440,12 +440,12 @@ jQuery.event = {
get: isFunction( hook ) ?
function() {
if ( this.originalEvent ) {
- return hook( this.originalEvent );
+ return hook( this.originalEvent );
}
} :
function() {
if ( this.originalEvent ) {
- return this.originalEvent[ name ];
+ return this.originalEvent[ name ];
}
},