Dan Heberden
c0389e3e37
Add missing var declaration for
2011-04-05 08:33:14 -07:00
Dan Heberden
c72371f714
Improve speed of $.map with object support (-5% previous speed) and improve .length detection
2011-04-04 23:59:54 -07:00
Dan Heberden
00dd6013b6
Clean up tab spacing
2011-03-21 12:24:53 -07:00
Dan Heberden
d832f4f71e
jQuery.map to iterate over objects with a .length property
2011-03-21 12:12:31 -07:00
Dan Heberden
e38f074d14
jQuery.map to conform with style guidelines - improved size/DRY code
2011-03-21 08:39:53 -07:00
Dan Heberden
f0e7d28e83
Merge branch 'bug_2616' of https://github.com/jboesch/jquery into map-object.1.6
...
* 'bug_2616' of https://github.com/jboesch/jquery :
Bug 2616; Adding object support to jQuery.map
2011-03-21 08:04:35 -07:00
jeresig
5c79f82ec2
Merge branch 'fix-7340-focusin-focusout-bubble' of https://github.com/dmethvin/jquery into dmethvin-fix-7340-focusin-focusout-bubble
2011-03-21 10:53:18 -04:00
John Resig
0cf336d2c9
Merge branch 'bug_6158' of https://github.com/jboesch/jquery into jboesch-bug_6158
2011-03-15 17:06:24 -04:00
Carl Fürstenberg
150d3decb5
Introduce submodules, closes #8536
...
Instead of the manual clone of sizzle and qunit, use git submodules
instead. this will ensure that all future releases can be recreated by
checking out an tag.
2011-03-15 20:16:09 +01:00
jaubourg
714ae379db
Fixes #8509 . Makes URL regexp less overzealous and ensures it recognizes URL schemes which do not contain a conformant hierarchical structure ( as per section 2.1.2 of http://www.ietf.org/rfc/rfc2718.txt ). Also adds about: and adobe air's app: and app-storage: to the list of local protocols and provides a failover in case document.location is illformed. Unit test added.
2011-03-15 19:20:03 +01:00
Jordan Boesch
124acbfbc5
removing parens
2011-03-14 14:17:02 -06:00
jaubourg
6c124d3dd4
Fixes #8423 . Never set X-Requested-With header automagically for cross-domain requests.
2011-03-07 00:42:09 +01:00
Jordan Boesch
c9ef09c800
bug 6158; fixing replaceWith from throwing errors on non existant elements
2011-03-05 09:46:12 -06:00
Jordan Boesch
5c2d70979c
bug 6158; fixing replaceWith from throwing errors on empty elements
2011-03-05 09:30:29 -06:00
Dave Methvin
55ec6a71d2
Fixes #7340 . Use a single capturing handler to simulate bubbling focusin/focusout event on non-IE browsers. Allow native DOM methods to fire events other than the currently active one back into jQuery.
2011-03-04 21:16:40 -05:00
jaubourg
2d0bc7ce72
Moves Deferred-related code into a separate module. Context handling has been simplified in _Deferred.resolve and jQuery.when has been refactored for clarity (and minor optimization).
2011-03-03 19:38:06 +01:00
jaubourg
c1279895f3
Fix for #8421 . Makes sure resolveWith can be called with only one parameter.
2011-03-03 15:16:47 +01:00
Jordan Boesch
c8a887af06
Bug 2616; Adding object support to jQuery.map
2011-02-27 12:47:35 -06:00
gnarf
14e9da51f9
A quick change to detect AIR urls
2011-02-24 13:10:33 -06:00
jaubourg
58faec7cb7
Removes unnecessary parenthesis from regular expression.
2011-02-24 06:37:37 +01:00
jaubourg
5d9db486c7
Revert "Fixes #8353 . Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6."
...
This reverts commit cacea6f7e7
.
2011-02-24 00:32:30 +01:00
jeresig
292acd97a2
Make a new jQuery.support.noCloneChecked - splitting apart the previous feature detect relating to clone in IE, fixes the last remaining issue with IE 9 RC. Fixes #8365 .
2011-02-23 13:18:44 -05:00
jaubourg
3663836b01
Refactors jQuery.when to avoid unnecessary recursion and limit function calls as much as possible.
2011-02-23 08:00:27 +01:00
jaubourg
cacea6f7e7
Fixes #8353 . Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6.
2011-02-23 02:50:27 +01:00
jaubourg
e405419fb7
Makes the promise method of Deferreds a bit more readable by not using the variable declared as parameter trick anymore.
2011-02-22 00:44:22 +01:00
Dan Heberden
47abe5e1da
Bug #6911 - Prevent action on disabled elements, both triggering and bound via .live()
2011-02-18 10:09:07 -08:00
jaubourg
a43a5ca9cf
Revert "Adds an invert method to promises that returns a "inverted" promise that is resolved when the underlying deferred is rejected and rejected when the underlying deferred is resolved."
...
This reverts commit 4e97543051
.
2011-02-18 18:06:26 +01:00
Alex Sexton
752db8fffe
A temporary workaround for #8018 that avoids any chance of compatibility-breaking changes until a proper fix can be landed in 1.6.
2011-02-17 18:01:30 -06:00
louisremi
85d9343271
Fixes #7912 . Make sure .cur() only returns 0 as fallback value when it needs to ("", auto, undefined, null).
...
This change makes .cur() more .cssHooks friendly. .cur() now returns the unmodified value by
.css() if it isn't a number, number-alike or a value that needs a fallback to 0.
This way fx.start doesn't need to be recalculated for complex values.
2011-02-17 17:26:23 +01:00
Dave Methvin
b9f5e2b974
Only perpetrate the .toJSON hack on data caches when they are attached to a plain Javascript object. Part of the continuing saga of #8108 .
2011-02-17 17:09:56 +01:00
jaubourg
5b38439011
Fixes #8297 . Makes sure response headers with empty values are handled properly and do not prevent proper parsing of the entire response headers string. Unit test amended.
2011-02-17 17:03:09 +01:00
Anton M
faa6fe32f7
Revert "Merge branch '8099' of https://github.com/rwldrn/jquery into rwldrn-8099"
...
This reverts commit bb9408516a
, reversing
changes made to 3ad8dd242a
.
Conflicts:
src/effects.js
2011-02-15 22:30:34 +01:00
Anton M
6b08d88d04
Fix some whitespace issues.
2011-02-15 22:09:09 +01:00
Dave Methvin
12c0e1a692
Fixes #7922 . Copy the donor event when simulating a bubbling submit in IE so that we don't accidentally stop propagation on it. Remove a bunch of return statements that could also cancel the event. DRY out the liveFired change from #6359 by moving it to the trigger() function.
2011-02-15 22:08:39 +01:00
jaubourg
1ddfdabbb9
Fixes #8277 . Sets data to undefined rather than null when it is not provided in ajax helpers so that it won't revent data set in ajaxSettings from being used. Unit test added.
2011-02-15 21:53:38 +01:00
Colin Snover
2cc03a86fc
Update jQuery.data to use jQuery.noop for toJSON hack instead of an additional superfluous function.
2011-02-14 16:30:18 -06:00
Colin Snover
2ed81708bd
Hide metadata when serializing JS objects using JSON.stringify via a toJSON hack. Fixes #8108 .
2011-02-14 16:22:23 -06:00
Anton M
217a9919c3
Add missing semicolon.
2011-02-14 22:38:19 +01:00
jeresig
bb9408516a
Merge branch '8099' of https://github.com/rwldrn/jquery into rwldrn-8099
2011-02-14 12:36:49 -05:00
jeresig
3ad8dd242a
Merge branch 'fix8033' of https://github.com/SlexAxton/jquery into SlexAxton-fix8033
2011-02-14 12:35:27 -05:00
Anton M
659773348f
Fix breaking test in Chrome.
2011-02-14 00:37:07 +01:00
Anton M
c5edf982d5
Don't add "px" to unit-less properties when animating them. Fixes #4966 .
2011-02-13 23:17:58 +01:00
David Murdoch
3548ffaee2
Remove unnecessary "script.type = text/javascript;". Fixes #8198 .
...
Follow up to 462bb1f66a
.
2011-02-12 13:53:03 +01:00
David Murdoch
f099907672
Unexpose $.support._scriptEval as it's not needed. Use a private var instead. Fixes #8200 .
2011-02-12 13:53:02 +01:00
jaubourg
d4790116b8
Enhances ajaxSetup so that it can take an optional target option, in which case target will be updated instead of ajaxSettings. That way, fields that shouldn't be deep extended can be listed and dealt with in one place. jQuery.ajax now makes use of ajaxSetup with target to create its internal settings object. Fixes #7531 in IE9RC.
2011-02-12 03:59:46 +01:00
jaubourg
081562cebc
Pulls out the callback function in setRequestHeader. Also renames the regexp so that what it's meant to do is a bit more obvious.
2011-02-12 01:08:24 +01:00
jaubourg
ea3e10a492
Minor changes to enforce JQuery Core Style Guidelines.
2011-02-12 00:14:11 +01:00
jaubourg
066304edf0
Adds missing crossDomain test.
2011-02-11 07:39:46 +01:00
jaubourg
f2e0ae1a39
Fixes #8245 . Ajax now ensures header names are capitalized so that non-compliant xhr implementations don't override them.
2011-02-11 07:07:06 +01:00
jaubourg
3a1d7a3c7c
Simplifies status normalization in xhr transport. Local file test modified for clarity.
2011-02-11 07:02:11 +01:00