Commit Graph

4103 Commits

Author SHA1 Message Date
Corey Frang
499d7e409c Ensuring that nulls in private data object won't cause errors on stop() - Fixes #10750 2011-11-14 11:36:36 -05:00
Oleg
a467aa0a77 Fix #10773. Improve parameter handling in removeAttr. 2011-11-14 11:30:53 -05:00
Dave Methvin
fa96f4bdee Pre-focus the element so the browser won't fire focus while we're faking it.
At this point the unit test is only testing our ability to fake-fire focusin the right way. These machinations are related to the problem in #6705.
2011-11-13 21:32:07 -05:00
Dave Methvin
d2815ed750 Disable DOM focusin test since it can't really work in the swarm. 2011-11-13 21:03:36 -05:00
Dave Methvin
683be093a6 Catch more cases where special events were incorrectly removed.
We can't take the blow-it-all-away shortcut because something in the middle of the list may be a mapped special event. On the bright side, -22!
2011-11-13 20:50:36 -05:00
Mike Sherov
e0a4aa415d use for loop instead of jQuery.each in getWH() 2011-11-10 21:59:45 -05:00
Dave Methvin
774eba3388 Avoid collateral damage when removing bindType/delegateType special events. 2011-11-10 21:53:07 -05:00
Dave Methvin
5ba7f60822 Ensure the hover event doesn't match hovercraft. Witchcraft, maybe. 2011-11-10 18:05:58 -05:00
timmywil
d589709851 Move clearing the support vars to before the offset doc ready call in case the offset tests are run synchronously. Fixes #10737.
- Adding a test for this would probably slow the manipulation tests significantly, but it's simple enough.
2011-11-10 10:31:40 -05:00
Dave Methvin
e977a85b87 The special.handle hook is for origType, not the mapped type. 2011-11-09 21:51:55 -05:00
Dave Methvin
dd363d2c0f Fix #10705. Don't bail too soon in .off() event string processing. 2011-11-09 21:29:15 -05:00
Daniel Herman
654930de21 Removing .unbind in favor of .off in jQuery.ready 2011-11-09 20:30:08 -05:00
Dave Methvin
39f9b846e7 Fix #10712. Deal with focus/blur morphing to focusin/focusout. 2011-11-08 23:08:04 -05:00
Dave Methvin
45101de696 Fix #10717, .trigger("load") on images can't bubble to window.
This means no manually triggered event named "load" can bubble, so avoid that name for delegated custom events.
2011-11-08 19:32:25 -05:00
jaubourg
2a9f0681de Have Deferred.always return the object onto which it is currently attached to enable true chainability. Fixes #10723. Unit tests added. 2011-11-09 01:02:29 +01:00
Dave Methvin
c3600e261b Take 2 on "Fix ajax to always expect an Error object, per #10646."
We can't use jQuery.error to rethrow anymore since it constructs a new Error from its supposedly-string arg. Also, older IE stringifies Error objects into "[object Error]" so I've loosened the unit test criteria.

This reverts commit 586fb05919.
2011-11-08 15:52:30 -05:00
Dave Methvin
d8e2b4b6e4 Revert "Catch one more place where a plain-text error was thrown."
This reverts commit cc4a999648.
2011-11-08 15:52:29 -05:00
timmywil
0cc806fd88 Update Sizzle. Adds document to acceptable nodeTypes for .text(). Fixes #10724. 2011-11-08 15:47:03 -05:00
Dave Methvin
cc4a999648 Catch one more place where a plain-text error was thrown. 2011-11-08 10:09:53 -05:00
timmywil
f0e43fad37 Refactor clone a bit to only create one clone on any given codepath 2011-11-08 09:48:57 -05:00
Dave Methvin
95cd2009f6 Merge branch 'master' of github.com:jquery/jquery 2011-11-08 09:42:43 -05:00
Dave Methvin
586fb05919 Fix ajax to always expect an Error object, per #10646. 2011-11-08 09:42:08 -05:00
timmywil
0ce2d5e1cb Update Sizzle 2011-11-08 00:06:38 -05:00
timmywil
41b31d7386 Remove test of the invalid object for IE9's sake; Rewrite the appropriate support test for html5 clone caching. Fixes #10682 2011-11-08 00:05:33 -05:00
timmywil
f8eba6ee25 Comment out an ajax test that exposed a bug in Opera, to appease testswarm. 2011-11-07 21:33:03 -05:00
Rick Waldron
66e65c8168 Fix busted rnoshimcache. Correctly clone detached unknown elems. Fixes #10667, #10670.
- \s => |, Removes 4 bytes from gzipped build

- Adds tests for clone attributes, children and events
2011-11-07 21:22:04 -05:00
Dave Methvin
68ca9d47a0 Merge pull request #585 from dcherman/master
Replace .bind with .on when building event aliases
2011-11-07 17:40:55 -08:00
Daniel Herman
5ba98fe324 Replace .bind with .on when building event aliases 2011-11-07 18:07:54 -05:00
timmywil
9189d7b6a3 Update Sizzle 2011-11-07 11:50:39 -05:00
Dave Methvin
8d2655d20c Fix #10646. Throw an Error object from .error() for IE's sake. 2011-11-07 11:40:39 -05:00
Dave Methvin
795583d293 Fix #10690. Make sure .isNumeric() can't get a Date.
Also add tests for custom objects with a `.toString()` method.
2011-11-07 11:25:51 -05:00
Dave Methvin
13aa84580a Fix #10676. Remove wheelDelta from the event props list.
A cross-browser solution is best handled in a plugin such as jquery-mousewheel.js .
2011-11-07 11:15:18 -05:00
Dave Methvin
90c907e8b6 Fix #10701, .preventDefault if an inline handler returns false.
Baby unicorns are slapped each time you use inline handlers, so do it sparingly.
2011-11-07 11:07:36 -05:00
timmywil
1e677f30f6 Add back unit in the width/height step function. Fixes #10669. 2011-11-07 10:47:09 -05:00
Dave Methvin
a7e911b7fe Since we fixed .is(POS) let's use it and save bytes.
Also, creates a single jQuery object and reuses it in the delegation-test loop to make it more performancy.
2011-11-06 20:12:00 -05:00
Dave Methvin
f5250e1594 Merge pull request #583 from JustinDrake/patch-2
`self` instead of `$this`
2011-11-06 14:56:48 -08:00
Justin
abcdaf9043 It seems the convention is to use self for caching jQuery ( this ) instead of using $this. 2011-11-06 22:54:21 +00:00
Matt Mueller
a211ea27d2 Removed irrelevant comment. 2011-11-06 17:34:49 -05:00
Corey Frang
471290deb6 Removing a stale line of code in .data() 2011-11-06 17:24:44 -05:00
Toby Brain
47c605f693 Fix #10177. Pass correct index to function-parameter of .wrap 2011-11-06 16:59:41 -05:00
Berker Peksag
90c019de5e Chrome 10 slice bug has been fixed; remove workaround.
See: http://code.google.com/p/v8/issues/detail?id=1050
Discussion: jquery/jquery@52a0238.
2011-11-06 16:38:26 -05:00
Rick Waldron
7cbd7a640f Coerce eq() argument all the time. Fixes #10616 2011-11-06 16:17:59 -05:00
Rick Waldron
e086c22826 User internalKey instead of jQuery.expando. Fixes #10675 2011-11-06 16:05:45 -05:00
Dave Methvin
262c32a70e Streamline getComputedStyle per @JustinDrake's observation. 2011-11-06 15:49:45 -05:00
Mike Sherov
f35ba5e699 Fix #10691. Remove all instances of equals() and same(), as these are deprecated in QUnit. 2011-11-06 15:27:42 -05:00
Dave Methvin
83c72eaa9c Remove forever-alone regexps in event.js
These should have been removed during the event refactor.
2011-11-06 14:49:31 -05:00
Dave Methvin
02629f1047 Eliminate spurious error message from which.
Some versions of `which` (Cygwin's among them) spit out an error to stderr when not all their args are found. We only expect one of these to be found anyway.
2011-11-06 14:45:35 -05:00
Rick Waldron
92c8404012 Fixes jQuery.fragments cache and adds tests. Fixes #10682 2011-11-05 23:06:53 -04:00
Dave Methvin
8380e12ab4 Updating the source version to 1.7.1pre 2011-11-03 16:18:50 -04:00
Dave Methvin
47d66eaebd Tagging the 1.7 release. 2011-11-03 16:18:21 -04:00