Oleg Gaidarenko
1a067a49d1
Event: remove guard for falsy handler argument of jQuery#on method
...
(cherry-picked from fac67a9842
)
Since we don't have this in off method and its a common perception
that this is a rudiment code
Ref gh-2248
Closes gh-2249
2015-05-03 13:57:55 +03:00
Oleg Gaidarenko
fae2daadaa
Event: correct support comment
...
(cherry-picked from 361a0d5150
)
See discussion in
a5e1c9b44c
2015-03-08 06:25:01 +03:00
Michał Gołębiowski
f3e3a208de
Event: Add a note about a mouseenter bug in Chrome
...
Also, add a support comment about older Safari.
Refs https://code.google.com/p/chromium/issues/detail?id=333868
Partially cherry-picked from a5e1c9b44c
2015-01-25 01:13:04 +01:00
Dave Methvin
a05de404d8
Event: HTML5 drop events inherit from MouseEvent
...
Fixes gh-2009
Ref gh-1925
(cherry picked from commit d7e5fcee51
)
Conflicts:
test/unit/event.js
2015-01-14 14:45:44 -05:00
Richard Gibson
6ae222a54f
Core: Standardize indexOf comparisons
...
not present: `< 0`
present: `> -1`
at index: `=== N`
(cherry picked from commit 53aa87f3bf
)
Closes gh-1985
2015-01-10 23:56:39 -05:00
Aditya Raghavan
5b0b1b77db
Event: Normalize mouse event properties in drag events
...
DragEvent is a superset of MouseEvent, so we want to fix up mouse
properties like pageX and pageY.
Fixes gh-1925
(cherry picked from commit 389b2ab3b93bfd68ca6c6153a43e11d93ab9ec71)
2015-01-05 15:30:32 -05:00
Norman Xu
2866da9e12
Event: Add reference to data module
...
Since we are using _data() quite a lot in event module
and drop data/accepts as there is no direct reference
Ref gh-1948
2014-12-31 17:43:03 +03:00
Dave Methvin
51564bbd39
Event: Empty namespaces should be uneventfully ignored
...
Thanks @hamishdickson for the report!
Closes gh-1769
(cherry picked from commit 8653068dd6
)
2014-12-09 20:10:56 -05:00
Michał Gołębiowski
90d7cc1d8b
Misc: Drop support for older browsers; update support comments
...
That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks
for old Blackberry.
Fixes gh-1836
Fixes gh-1701
Refs gh-1815
Refs gh-1820
2014-12-08 21:12:33 +01:00
Dave Methvin
a90ff8c8c7
Event: Copy detail property to jQuery.Event on native events
...
Fixes gh-1867
(cherry picked from commit d9ed166c86
)
Conflicts:
test/unit/event.js
2014-12-03 16:01:40 -05:00
Daniel Herman
d4a998f62f
Event: Restore the constructor
property on jQuery.Event prototype
...
The original definition of the jQuery.Event prototype was paving over the
`constructor` property which was causing jQuery.isPlainObject to
improperly report that an instance of jQuery.Event was a plain object.
Fixes #15090
Closes gh-1580
(cherry picked from commit b807aedb7f
)
2014-09-04 03:29:16 -04:00
Chris Antaki
835e8c4ae3
Core: Drop strundefined variable
...
Ref 29838b6cab
Closes gh-1628
2014-09-02 20:35:49 +04:00
Timmy Willison
91e06e9aeb
Build: update grunt-jscs-checker and pass with the new rules
...
Conflicts:
build/tasks/build.js
src/ajax/xhr.js
src/attributes/classes.js
src/attributes/prop.js
src/attributes/val.js
src/core/init.js
src/core/ready.js
src/css.js
src/css/curCSS.js
src/css/defaultDisplay.js
src/data.js
src/data/var/dataPriv.js
src/data/var/dataUser.js
src/dimensions.js
src/effects.js
src/event.js
src/manipulation.js
src/offset.js
src/queue.js
src/selector-native.js
test/data/testrunner.js
2014-07-17 11:08:37 -07:00
Michał Gołębiowski
98b5275c12
Event: Remove redundant fallback to getPreventDefault()
...
Android 2.3 is happy with returnValue already used for oldIE;
the getPreventDefault() fallback is not needed.
Closes gh-1546
2014-03-20 23:10:36 -04:00
louisremi
64d7c168c8
Event: Treat Pointer events like mouse events, #14741
...
Ref #14741
Ref gh-1503
(cherry picked from commit e06f428f6e
)
2014-03-16 11:01:09 -04:00
Dave Methvin
4c68d107b5
Event: Call underlying stopImmediatePropagation when present
...
Fixes #13997
(cherry picked from commit 6a89db86ed
)
2014-03-12 21:45:50 -04:00
Dave Methvin
93fdfa2d8c
Event: Allow triggerHandler(beforeunload)
...
Fixes #14791
(cherry picked from commit 06adf7c95d
)
Conflicts:
src/event.js
2014-03-04 21:50:41 -05:00
Dave Methvin
5f325b1bee
Ref #14180 , let focusin/out work on non-element targets.
...
(cherry picked from commit c2aca17d45
)
Conflicts:
src/event.js
2013-11-14 16:40:22 -05:00
Dave Methvin
97d53838e0
Fix #14180 . Allow cross-frame use of focusin/out. Close gh-1369.
...
(cherry picked from commit ebdb467761d756d4e52608a0df4a4d9b17da8092)
(conflicts with .data() resolved manually)
2013-11-12 21:24:20 -05:00
Oleg
22120cea66
Fix some code style inconsistencies
2013-11-07 22:09:33 +01:00
Dave Methvin
469150a27e
Revert "Fix #14180 . Allow cross-frame use of focusin/out. Close gh-1369."
...
This reverts commit bba8366af4
.
Because cross-frame focus sucks.
2013-10-22 22:47:34 -04:00
Dave Methvin
bba8366af4
Fix #14180 . Allow cross-frame use of focusin/out. Close gh-1369.
...
(cherry picked from commit 6d5dfa0eda2c19e8838930fafff83b596654eca2)
Manually edited for conflicts.
2013-10-22 21:48:50 -04:00
Timmy Willison
62900a9edb
Fixes #14450 . Remove CommonJS+AMD syntax.
...
- To keep file size unaffected, an extra pragma was added to build.js to remove certain lines when building with special comments.
Conflicts:
src/core.js
src/css.js
src/effects.js
src/event.js
src/manipulation.js
src/offset.js
2013-10-15 11:59:16 -04:00
Dave Methvin
b7da3b0043
Fix #13993 . Save result of native inline handlers. Close gh-1368.
...
(cherry picked from commit 3bcd04f528
)
2013-10-06 17:58:28 -04:00
Dave Methvin
60004e68f8
Fix #14282 . Don't fondle getPreventDefault if preventDefault exists. Close gh-1365.
...
(cherry picked from commit 4671ef15c2
)
Conflicts:
src/event.js
2013-09-19 10:19:13 -04:00
Timmy Willison
2f627494f2
Separate jQuery.fn.init into its own module (for lighter core dependencies across all modules). Restore proper support property for effects.
...
Conflicts:
src/attributes/classes.js
src/core.js
src/manipulation.js
src/traversing.js
2013-09-09 22:51:11 -05:00
Timmy Willison
2063d6c189
Break jQuery.access out into its own module to separate it from core; Adjust CommonJS+AMD build support to include non-var dependencies. Convert modules with more than a few dependencies to use CJS+AMD syntax.
...
Conflicts:
src/core.js
src/css.js
src/data.js
src/effects.js
src/event.js
src/manipulation.js
src/traversing.js
2013-09-09 12:04:03 -04:00
Timmy Willison
3c717d2e6a
Always return jQuery in modules that can be included separately
...
Conflicts:
src/attributes.js
src/data.js
src/manipulation.js
2013-09-08 21:30:48 -04:00
Michał Gołębiowski
badcd1b6f3
Fix #10814 . Fix #14084 . Make support tests lazy and broken out to components.
2013-09-06 03:40:49 +02:00
Timmy Willison
217cbb7109
AMD-ify jQuery sourcegit s! Woo! Fixes #14113 , #14163 .
...
Conflicts:
Gruntfile.js
README.md
src/ajax.js
src/ajax/xhr.js
src/attributes.js
src/core.js
src/css.js
src/data.js
src/effects.js
src/event.js
src/manipulation.js
src/offset.js
src/selector-native.js
src/traversing.js
test/unit/core.js
test/unit/data.js
2013-08-15 15:49:49 -04:00
Michał Gołębiowski
ef154cc530
Remove an unnecessary comment
2013-05-24 20:14:48 +02:00
Dave Methvin
fdaf2146ad
Fix #13393 . Avoid IE9 activeElement of death.
...
(Cherry picked from 85fc5878b3
)
Conflicts:
src/event.js
2013-04-08 21:52:16 -04:00
Richard Gibson
14b09ef98e
Ref #12652 : Allow overriding native .click() suppression
2013-04-08 13:19:03 -04:00
Michał Gołębiowski
8594decfcc
Ref #13554 : Move redundant methods to event-alias.js. Close gh-1225.
...
(cherry picked from commits 8ca9f931ec
84a94acae1
100d3c3516
)
2013-04-07 00:48:58 -04:00
Michał Gołębiowski
4adde5d145
Update grunt-contrib-jshint to 0.3.0, ref gh-1204.
2013-04-03 20:41:41 -04:00
Richard Gibson
65a6648932
Ref #13353 : capture onlyHandlers in jQuery.Event.isTrigger. Close gh-1183.
2013-04-03 20:25:50 -04:00
Scott González
89b62a78fc
Whitespace.
...
(cherry picked from commit b55bfb140f
)
2013-02-26 13:43:49 -05:00
Dave Methvin
f5163914fa
Fix #13471 . $().on(".xyz"...) should avoid later crash.
...
If the event type is an empty string we end up hanging in .off() which makes for
mighty hard debugging. Instead treat it as a no-op. Docs seem clear this is not
allowed.
2013-02-26 12:24:56 -05:00
Andrew Plummer
f005af54e4
event: Stricter type checking in trigger - Fixes #13360 - Closes gh-1153
...
Squashed commit of the following:
commit 5935a362c7
Author: Andrew Plummer <plummer.andrew@gmail.com>
Date: Fri Feb 1 02:40:42 2013 +0900
Using "hasOwnProperty" to check for direct properties "type" and
"namespace" on events before triggering.
2013-01-31 12:01:34 -06:00
Oleg
d79bf3517e
Fix #13355 . Tweak Uglify options and var order for gzip. Close gh-1151.
...
Change uglify-js options for compressor
Change variables initialization sequence for some declarations
2013-01-31 10:22:12 -05:00
Oleg
e392e5579b
Change variables initialization sequence for some declarations
2013-01-31 10:01:18 -05:00
Dave Methvin
24e7624554
Fix #12656 . Make event shorthands excludable.
2013-01-27 00:35:42 -05:00
Richard Gibson
ec9b38a34f
Fix #13315 : compare typeof node.method to var instead of literal "undefined" for safer uglification
2013-01-24 00:13:16 -05:00
Richard Gibson
64bb0c4135
Ref 8f72967e
: use acceptData to determine when it is safe to add event handlers
...
(cherry picked from commit 50290b8ffb
)
2013-01-16 14:41:18 -05:00
Richard Gibson
fc2ba2e136
Fix #13208 : only check elements for delegation matches
2013-01-16 00:14:57 -05:00
Richard Gibson
63f40866fd
Fix #13203 : delegated events with selector matching Object.prototype property
...
(cherry picked from commit 31b9579715
)
2013-01-13 21:42:36 -05:00
Richard Gibson
a7683d866c
No ticket: sync with master @ b75b9ef8
2013-01-13 20:05:43 -05:00
Richard Gibson
f860e0bd2f
Fix #13180 : don't delegate into SVG <use>
2013-01-13 19:20:29 -05:00
Richard Gibson
7812aab1c9
reduce size
2013-01-13 19:20:26 -05:00
Richard Gibson
14c50da7d5
jQuery.event.handlers delegate matching hook point
2013-01-13 19:20:22 -05:00