Commit Graph

2805 Commits

Author SHA1 Message Date
timmywil
f3a4d261ec Landing pull request 550. IE6,7,8 cannot use cached fragments from unknown elems. Fixes #10501.
More Details:
- https://github.com/jquery/jquery/pull/550
- http://bugs.jquery.com/ticket/10501
2011-10-23 16:08:10 -04:00
Mathias Bynens
a6bec46170 Landing pull request 554. #10531: Remove layerX and layerY Fixes #10531.
More Details:
 - https://github.com/jquery/jquery/pull/554
 - http://bugs.jquery.com/ticket/10531
2011-10-22 16:14:47 -04:00
Mike Sherov
e502012c0f Landing pull request 553. Fallback to elem.style for disconnected nodes in width/height retrieval. Fixes #8388.
More Details:
 - https://github.com/jquery/jquery/pull/553
 - http://bugs.jquery.com/ticket/10254
 - http://bugs.jquery.com/ticket/8388
2011-10-22 16:08:14 -04:00
timmywil
c51b29477e Support setting both the enctype attribute and property (encoding in IE6/7). Fixes #6743. 2011-10-22 16:03:57 -04:00
timmywil
f2c1d2e016 Use the property name in elem.removeAttribute in IE6/7 to ensure correct removals. Fixes #10514. 2011-10-17 16:45:37 -04:00
Dave Methvin
0a3cab8d49 Fix #10489. Disconnected elements don't bubble to document. 2011-10-13 16:30:40 -04:00
timmywil
8723f3b9e1 Update sizzle; Add sizzle cache collision iframe test. Fixes #8539. 2011-10-13 11:11:41 -04:00
timmywil
3ad0ba62f0 Do not call getElements on a script tag. Avoids unnecessary execution. Fixes #10176. 2011-10-12 00:06:54 -04:00
timmywil
a18645c6f8 Leave the opacity test unanchored in case of floating point rounding browser errors; small fix in queue tests. Fixes #5145. 2011-10-11 22:37:52 -04:00
Corey Frang
6c4ca13d69 Squashed commit of the following:
commit af3fd32f207ed080084f10d76f89c07c414baa05
Merge: 83c08ff fdd60f8
Author: Dave Methvin <dave.methvin@gmail.com>
Date:   Tue Oct 11 21:17:56 2011 -0400

    Merge branch 'stop' of https://github.com/gnarf37/jquery into pull-541-stop

commit fdd60f8705
Author: Corey Frang <gnarf@gnarf.net>
Date:   Mon Oct 10 13:51:59 2011 -0500

    .stop( [queue,] clearQueue, gotoEnd )
2011-10-11 21:21:59 -04:00
Dave Methvin
83c08ffa1f Fix #10478. Replace jQuery.isNaN with jQuery.isNumeric.
Thanks to Christian C. Salvadó for the unit tests!
2011-10-11 21:04:22 -04:00
Dave Methvin
6afc2c074b Fixes #10477. Get .off(type, null, fn) right. 2011-10-11 20:31:45 -04:00
jaubourg
d29182e8d0 Removes isPending and introduces state as a means to retrieve the Deferred/Promise state. Unit tests amended. 2011-10-11 20:23:56 -04:00
Dave Methvin
511c9fe763 Fix focus/blur unit test issues. Reopens #6705.
In the event refactor, I tried to have the focus/blur events trigger the focus/blur plus focusin/focusout events but this doesn't handle various real-world cases that expect a trigger()ed jQuery handler to run and be able to pass data even if the native event shouldn't fire.

This reopens a bug that causes a double-fire of
inline event handlers.
2011-10-10 23:14:08 -04:00
Dave Methvin
307b1a3d77 Fix #10468. Remove jQuery.event.proxy and jQuery.event.guid.
These were deprecated several versions ago and have always been undocumented. Use jQuery.proxy() and jQuery.guid instead.
2011-10-10 21:51:15 -04:00
Julian Aubourg
c51a970604 Merge pull request #535 from gnarf37/queue-true
Effects - Allow queue: true - Fixes #10445
2011-10-07 08:52:54 -07:00
timmywil
e828d18caa Minor fix in events; undeclared var from last commit 2011-10-07 11:45:42 -04:00
Corey Frang
1ba0f9c3ed Effects - Allow queue: true - Fixes #10445 2011-10-07 10:16:38 -05:00
Dave Methvin
cec0d0d421 Merge pull request #531 from rwldrn/events.js-cleanup
Style sweep
2011-10-07 07:14:53 -07:00
timmywil
ce8d9c0ca5 Add a hook for removing contenteditable in IE6/7 and remove the unnecessary jQuery.attrFix. Fixes #10429. 2011-10-06 17:17:51 -04:00
Rick Waldron
3999d39b84 Additional nits 2011-10-06 16:36:15 -04:00
Rick Waldron
4fd70e7e02 Style sweep 2011-10-06 10:21:23 -04:00
Dave Methvin
e5b16e3356 Rename jQuery.event.propHooks to .fixHooks.
We already have jQuery.propHooks for the .prop() method, so using the same name for unrelated functionality on a sub-namespace is crazy talk. Since the method involved is jQuery.event.fix(), this will hopefully tie them together. Oh, and it's shorter.
2011-10-05 21:41:32 -04:00
Rick Waldron
22f2e8b3dc Landing pull request 530. Fixes coniditional path for tr, td defaultDisplay() calls. Fixes #10416.
More Details:
 - https://github.com/jquery/jquery/pull/530
 - http://bugs.jquery.com/ticket/10416
2011-10-04 15:53:19 -04:00
jaubourg
749d32a290 isProgressing becomes isPending. Unit tests added. 2011-10-04 12:08:46 -04:00
Shi Chuan
23f7c883c9 updated Juriy Zaytsev's detecting event support technique link in support.js 2011-10-04 23:09:12 +08:00
timmywil
1ebced1736 Add support for calling outer/inner Width/Height on the window and document. Fixes #9434. 2011-09-30 17:50:48 -04:00
Dave Methvin
96a44a86d8 Fix #10375. Don't put type in jQuery.event.props
It's already set in jQuery.Event, and copying it can clobber values set by the caller, e.g., the UI widget factory.
2011-09-29 10:34:55 -04:00
timmywil
22fcc7744d Update Sizzle. Fixes #3144, #6863. 2011-09-28 16:47:45 -04:00
Dave Methvin
9c4aaeb0a8 Expose jQuery.event.simulate for use by special event handlers. 2011-09-28 12:05:12 -04:00
Corey Frang
8dda57f82f Landing pull request 520. Unset the complete function just before calling it to avoid an exception creating a loop. Fixes #5684.
More Details:
 - https://github.com/jquery/jquery/pull/520
 - http://bugs.jquery.com/ticket/5684
2011-09-28 12:00:21 -04:00
Corey Frang
a3b59d7f92 Landing pull request 514. 1.7 - queue refactoring to handle delay stop - Fixes #6150.
More Details:
 - https://github.com/jquery/jquery/pull/514
 - http://bugs.jquery.com/ticket/6150
2011-09-28 11:55:29 -04:00
timmywil
a74cbb2b91 Move createSafeFragment to the top to satisfy lint 2011-09-28 11:39:05 -04:00
timmywil
3661835101 Fixes IE7 test suite. Keep the testElement attached and set necessary styles on it to fix the offset with margin test. 2011-09-28 11:30:38 -04:00
timmywil
649823de18 Fixes a fail in unit/traversing. Use an iframe's document for creating the html5 fragment when necessary. 2011-09-28 10:06:29 -04:00
Dave Methvin
c7838c3607 Minor cleanups to code. Futile effort to get IE to pass the unit test. 2011-09-25 22:04:52 -04:00
Dave Methvin
b4120a7430 propHooks now an object with props array and filter function.
Use the originalEvent to grab properties in filter functions since they often won't have been copied to event. Mark a few current props in the main jQuery.event.props list as deprecated, they aren't supported across all browsers.
2011-09-25 19:56:34 -04:00
Dave Methvin
ae27424b30 Merge branch '8789-fun-with-fix' of https://github.com/rwldrn/jquery into fix-8789-rwldrn-fix
Conflicts:
	src/event.js
	test/unit/event.js
2011-09-24 22:37:16 -04:00
Rick Waldron
87e1c62d8e Moves mouse properties to mouseProps 2011-09-23 15:45:19 -04:00
Dave Methvin
d920ac68fd Simplify the .closest(Array) code since we no longer use it internally.
It was previously used in liveHandler for delegated events, but is now baked in to events.js. The signature is a strange one since it returns an array of matches, *not* a chainable jQuery object. I've marked it as deprecated.

The code is simplified by two things: 1) We don't care about optimizing the duplicate selectors case, and 2) `.is()` now handles positional selectors by looking for set membership, which eliminates the workaround that was being applied here. See 70e2e32e0e for that commit.
2011-09-23 09:11:02 -04:00
Rick Waldron
c80ad2524e current state 2011-09-22 20:02:34 -04:00
Rick Waldron
c7f3b6109e Removes early return loop, must copy properties 2011-09-22 19:05:06 -04:00
Rick Waldron
14cb04dc94 Shortcircuit fix if possible 2011-09-22 11:30:03 -04:00
Rick Waldron
dc878ae33b More ref localization 2011-09-22 11:22:56 -04:00
Rick Waldron
7dab8981f8 Remove unnec. empty line 2011-09-22 11:14:45 -04:00
Rick Waldron
737820118b More reference caching 2011-09-22 11:12:42 -04:00
Rick Waldron
7babc7f203 Cache reference to propHook lookup and result 2011-09-22 11:07:16 -04:00
Rick Waldron
66202aeae5 Restore this.propHooks => jQuery.event.propHooks for better gzip compression. Thanks gnarf 2011-09-22 10:59:29 -04:00
Rick Waldron
2c903b805c Adds notes re: crash status of fix conditions 2011-09-22 10:52:29 -04:00
Rick Waldron
313bee9de4 Moves key event fixes to own even prop hook defs 2011-09-22 10:43:32 -04:00
Rick Waldron
9ef0394fbd jQuery.event.propHooks => this.propHooks where possible 2011-09-22 10:35:18 -04:00
Dave Methvin
d638aa9c6d Allow more cases to use innerHTML in the .html method.
Thanks @cmcnulty for the pull and the patience!
2011-09-21 23:05:26 -04:00
Dave Methvin
a4cdbf09ee Fix #7061. Lazy-attach to the genuine submit event for delegation.
Avoids the problems that arise when we try to trigger submit behavior at clicky-time.
2011-09-21 21:15:00 -04:00
jaubourg
a588336a6d Trimmed down $.Callbacks and $.Deferred. 2011-09-21 17:00:55 +02:00
Dave Methvin
03d95530b5 Remove the rarely-used pseudos from quickis.html
The cutting will continue until file size is improved.
2011-09-21 09:40:57 -04:00
Dave Methvin
61511d5ab3 Allow IE .trigger()ed events through on a check/radio. 2011-09-20 23:01:07 -04:00
Dave Methvin
b85f222df5 Don't fire change on an already-selected radio.
Thanks to Brandon Wallace (@bman654) for his code review. Also tweaks delegatetest.html output.
2011-09-20 22:18:34 -04:00
Dave Methvin
3bd7bed340 Fix #6593. Don't let onchange trigger twice for elements in IE.
This is a major revamp of the approach we use for IE change events. Instead of trying to track and simulate, we lazy-attach real change events to inputs and have only one workaround for check/radio. Somewhat more resource intensive but closes several sticky bugs. The onchange is still triggered for check/radio on blur but no double-trigger on any element occurs.
2011-09-20 20:44:36 -04:00
Rick Waldron
0aaa1fae83 Removes pageX pageY from prop list 2011-09-20 14:54:33 -04:00
Rick Waldron
3d39b7d527 Updates rmouseEvent 2011-09-20 13:14:59 -04:00
Rick Waldron
9fbed020a1 Implements jQuery.event.propHooks. Fixes #8789 2011-09-20 12:54:34 -04:00
Mathias Bynens
26898f0bc5 Landing pull request 509. Add a comment explaining the use of document.getElementsByTagName('body')[0] instead of document.body.
More Details:
 - https://github.com/jquery/jquery/pull/509
2011-09-20 11:23:01 -04:00
Dave Methvin
70e2e32e0e Landing pull request 491. Fix #7322. Make .is() with a positional selector work like delegated event logic. Fixes #7322.
More Details:
 - https://github.com/jquery/jquery/pull/491
 - http://bugs.jquery.com/ticket/7322
2011-09-19 23:50:52 -04:00
timmywil
f8b79e38c4 semicolon for jshint happiness 2011-09-19 23:25:02 -04:00
timmywil
11c9de477c Added filtering tests and updating sizzle to fix filtering with positional selectors. Fixes #10315. 2011-09-19 23:09:40 -04:00
Corey Frang
9b3768b968 Landing pull request 512. 1.7 - removeData now takes space separated lists and arrays of keys - Fixes #7323.
More Details:
 - https://github.com/jquery/jquery/pull/512
 - http://bugs.jquery.com/ticket/7323
2011-09-19 21:16:20 -04:00
Rick Waldron
ca4133cc3f Landing pull request 492. 1.7 Remove multiple attributes (Symmetry with removeClass) Combines patches submitted by leeoniya, zertosh and my own tests. Fixes #5479.
More Details:
 - https://github.com/jquery/jquery/pull/492
 - http://bugs.jquery.com/ticket/5479
2011-09-19 21:07:07 -04:00
Rick Waldron
f60213648c Landing pull request 477. 1.7 jQuery.offset.supportsFixedPosition. Fixes #6809.
More Details:
 - https://github.com/jquery/jquery/pull/477
 - http://bugs.jquery.com/ticket/6809
2011-09-19 21:03:41 -04:00
Rick Waldron
9ecdb2472b Landing pull request 490. 1.7 HTML5 Support for innerHTML, clone & style. Fixes #6485.
More Details:
 - https://github.com/jquery/jquery/pull/490
 - http://bugs.jquery.com/ticket/6485
2011-09-19 16:42:36 -04:00
jrburke
bba3d610c7 Landing pull request 331. Add support for registering jQuery as an AMD module. Fixes #7102.
More Details:
 - https://github.com/jquery/jquery/pull/331
 - http://bugs.jquery.com/ticket/7102
2011-09-19 16:37:22 -04:00
Corey Frang
2831cfd072 Landing pull request 503. 1.7 data: set a flag in the private data cache to avoid having to scan attributes multiple times - Fixes #8909.
More Details:
 - https://github.com/jquery/jquery/pull/503
 - http://bugs.jquery.com/ticket/8909
2011-09-19 16:13:57 -04:00
Corey Frang
d5f144a7bb Landing pull request 500. 1.7 - "public data" stored as a key on "internal data" - Fixes #8921.
More Details:
 - https://github.com/jquery/jquery/pull/500
 - http://bugs.jquery.com/ticket/8921
2011-09-19 16:13:14 -04:00
Corey Frang
e4c48a34b4 Landing pull request 496. 1.7 animate: allow named queues to be used by animate. Fixes #9280.
More Details:
 - https://github.com/jquery/jquery/pull/496
 - http://bugs.jquery.com/ticket/9280
2011-09-19 16:08:00 -04:00
Rick Waldron
af1dc64bee Landing pull request 510. Add notes about #9699 fix.
More Details:
 - https://github.com/jquery/jquery/pull/510
 - http://bugs.jquery.com/ticket/9699
2011-09-19 15:54:07 -04:00
timmywil
e7a7cc8914 Update sizzle 2011-09-19 15:42:32 -04:00
timmywil
29c52b0f6c Add sparse array performance improvement for inArray. Thanks rwaldron, rkatic, and jdalton 2011-09-19 15:42:32 -04:00
timmywil
76a84fba94 Call .is(:visible) on the window or document does not thrown an error in IE. Fixes #10267. 2011-09-19 15:42:32 -04:00
timmywil
daeb665045 Check for property support in the boolHook before falling back to attribute node. Fixes #10278. 2011-09-19 15:42:32 -04:00
timmywil
b7ebbb9142 Fix inArray for positive start indices 2011-09-19 15:42:32 -04:00
Dave Methvin
6ece8f138f Revert "Fix #6593. Don't trigger change event twice when simulating it on IE." Add inline handler monitor to delegatetest.html so we can see it fail.
This reverts commit e77686495b6e34938575c9c0fe978cb4a0be6f05.
2011-09-19 15:42:32 -04:00
Dave Methvin
6c618ddb0d Eliminate global variable "l" (!) 2011-09-19 15:42:32 -04:00
Dave Methvin
06e56acb0d Narrow the invisible-element embargo to focus/blur events. 2011-09-19 15:42:32 -04:00
Dave Methvin
4030de9519 Update "Fix #6593. Don't trigger change event twice when simulating it on IE."
This reverts commit 3d0de29d5615c1b1d74c72e6272484961a4ba243.
2011-09-19 15:42:32 -04:00
Dave Methvin
8c91da57b9 Fix #9593. Create a new jQuery.Event rather than a plain object when simulate()ing events. Fix a related issue with not passing src to jQuery.Event constructor. 2011-09-19 15:42:32 -04:00
Dave Methvin
619a89d5ff Fix #6593. Don't trigger change event twice when simulating it on IE. 2011-09-19 15:42:31 -04:00
Dave Methvin
6872d31f5a Fix #6170. Don't try to run DOM methods on window. 2011-09-19 15:42:31 -04:00
Dave Methvin
38601e07da Remove the relatedTarget adjustment for mouseenter/leave events, it's an ambiguous case anyway and it is expensive to do. 2011-09-19 15:42:31 -04:00
Dave Methvin
2886249e84 Cosmetic and style cleanups. 2011-09-19 15:42:31 -04:00
Dave Methvin
0ec71ac707 Fix the special event handler for mouseover/out events.
And use the /dist version of jquery.js, willya?
2011-09-19 15:42:31 -04:00
Dave Methvin
9aa553aa18 Rework #1486 patch to avoid try/catch and look for hidden elements by .offsetWidth. Unit test currently disabled due to Chrome bug. 2011-09-19 15:42:31 -04:00
Dave Methvin
ecd10464e8 Fix #9951. Precompute path for .trigger() to match up with W3C spec. 2011-09-19 15:42:31 -04:00
Dave Methvin
0ccb88d48d Fix some messy rebasing issues. 2011-09-19 15:42:31 -04:00
Dave Methvin
005958b731 Fixes for IE8. Avoid killer recursion in special events during removal. Use q instead of quote in unit tests. 2011-09-19 15:42:31 -04:00
Dave Methvin
9038aa9586 The unload event no longer needs the IE6SP2 fix, see http://bugs.jquery.com/ticket/8982 2011-09-19 15:42:31 -04:00
Dave Methvin
68d07bf648 Clean up the delegate matching logic. 2011-09-19 15:42:31 -04:00
Dave Methvin
66e9a6f773 Make a blur event bubble properly when mutated into a focusout event. 2011-09-19 15:42:31 -04:00
Dave Methvin
8a6bbc70d0 Remove redundancy in the IE special submit handler. 2011-09-19 15:42:31 -04:00
Dave Methvin
bd55f905a0 Fix simulate() arg order. 2011-09-19 15:42:31 -04:00
Dave Methvin
bb1081ee44 Clean up the quick selector expression parsing code. 2011-09-19 15:42:31 -04:00
Dave Methvin
990c094f1c special.handle now must call the handleObj.handler if it wants that to happen. Also re-use the simulate() function for bubbling focusin. 2011-09-19 15:42:31 -04:00