aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorWonseop Kim <wonseop.kim@samsung.com>2020-05-05 17:49:27 +0900
committerGitHub <noreply@github.com>2020-05-05 10:49:27 +0200
commit3d62d5704989f17d3a20ae7521d52e9c8c60b4ee (patch)
treee65bc1fe0f602abb63c9de17f75ab85524a35f61 /src/event.js
parent11066a9e6ac183dd710d1bc7aa74a3f809757136 (diff)
downloadjquery-3d62d5704989f17d3a20ae7521d52e9c8c60b4ee.tar.gz
jquery-3d62d5704989f17d3a20ae7521d52e9c8c60b4ee.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
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 c7812508b..96056a138 100644
--- a/src/event.js
+++ b/src/event.js
@@ -295,8 +295,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
@@ -416,12 +416,12 @@ jQuery.event = {
get: typeof hook === "function" ?
function() {
if ( this.originalEvent ) {
- return hook( this.originalEvent );
+ return hook( this.originalEvent );
}
} :
function() {
if ( this.originalEvent ) {
- return this.originalEvent[ name ];
+ return this.originalEvent[ name ];
}
},