jaubourg [Thu, 6 Jan 2011 00:17:31 +0000 (01:17 +0100)]
Renamed src/transports to src/ajax (in case we need prefilters in the future and to avoid a separate prefilters directory).
Colin Snover [Wed, 5 Jan 2011 21:41:23 +0000 (15:41 -0600)]
Cleaning up trailing whitespace again.
wycats [Wed, 5 Jan 2011 21:26:05 +0000 (13:26 -0800)]
Revert "Register as a CommonJS async module if in that kind of environment. Fixes #7102."
This reverts commit
6ffa730721a8ebcd128f3dc202706e46d9cfe249.
Conflicts:
src/core.js
rwldrn [Wed, 5 Jan 2011 18:32:59 +0000 (13:32 -0500)]
Bug #7608 elem.runtimeStyle throws exception in Opera
jaubourg [Wed, 5 Jan 2011 03:29:30 +0000 (04:29 +0100)]
"then" renamed "complete" and new "then" method defined using "complete" and "fail" internally. The API is still symetrical (complete/fail), still promotes AOP but is also now Promise/A compliant. Changed unit tests and ajax module accordingly.
jeresig [Tue, 4 Jan 2011 14:52:26 +0000 (06:52 -0800)]
Updating year to 2011.
Dave Methvin [Fri, 31 Dec 2010 19:56:51 +0000 (13:56 -0600)]
When serializing text, encode all line breaks as CRLF pairs per the application/x-www-form-urlencoded specification. Fixes #6876.
jaubourg [Fri, 31 Dec 2010 03:21:08 +0000 (04:21 +0100)]
Merge branch 'deferred' of github.com:jquery/jquery into deferred
Conflicts:
Rakefile
src/ajax.js
jaubourg [Thu, 30 Dec 2010 16:06:53 +0000 (17:06 +0100)]
Simplified the way a Promise is tested for (removed promiseMarker). Removed isCancelled helper method from _Deferred, wasn't used nor tested. Reworked jQuery.Deferred and removed unnecessary variables. Also ensured a Promise will return itself when asked for a Promise. Finally, the jQuery.when tests have been revamped.
jaubourg [Wed, 29 Dec 2010 17:44:45 +0000 (18:44 +0100)]
Revised conversion logic to handle converter equal to true properly.
jaubourg [Tue, 28 Dec 2010 03:13:44 +0000 (04:13 +0100)]
Introduced a new promise method on deferreds that returns an immutable object (exposing then, fail, isResolved, isRejected and promise itself only). Remove $.isDeferred and moved logic directly into $.when. Made sure $.when returns a promise by using promise(). Used promise() in ajax code too.
jaubourg [Tue, 28 Dec 2010 01:30:51 +0000 (02:30 +0100)]
Renamed several ajaxSettings options. Removed cors test, fixed failing cors test.
jaubourg [Sat, 25 Dec 2010 22:00:25 +0000 (23:00 +0100)]
Revised logic in data conversion to account for when dataFilter modifies the dataTypes list.
jaubourg [Sat, 25 Dec 2010 17:54:37 +0000 (18:54 +0100)]
Removed re-usability from jXHR object (no more open, send & onreadystatechange support). Streamlined the implementation and put it back into ajax.js (removed xhr.js in the process). Went back to a more simple & direct approach to options handling (keeping much room to further minification-related optimizations). Code is cleaner, smaller & faster. Removed & edited unit tests accordingly. All build files have had xhr.js removed.
jaubourg [Sat, 25 Dec 2010 14:38:33 +0000 (15:38 +0100)]
Removed dataCheckers, added true as possible value for dataConverters indicating dataType equivalence (ie. no conversion has to be performed).
unknown [Sat, 25 Dec 2010 11:52:53 +0000 (12:52 +0100)]
Removed custom method in isDeferred and when.
unknown [Sat, 25 Dec 2010 00:29:04 +0000 (01:29 +0100)]
Deferred cannot be cancelled by returning false in a callback. Exception in the callback are still propagated and execution of remaining callbacks is still possible.
unknown [Sat, 25 Dec 2010 00:27:40 +0000 (01:27 +0100)]
Removed a console.log :/
unknown [Fri, 24 Dec 2010 17:53:55 +0000 (18:53 +0100)]
Capitalized Deferred & _Deferred to clearly mark them as new types, like Event.
unknown [Fri, 24 Dec 2010 17:02:45 +0000 (18:02 +0100)]
Changed dataConverters key format.
unknown [Fri, 24 Dec 2010 17:02:00 +0000 (18:02 +0100)]
jQuery.parseXML extracted from ajax & added to core, needs unit testing.
jaubourg [Tue, 21 Dec 2010 16:04:07 +0000 (17:04 +0100)]
Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning).
jaubourg [Tue, 21 Dec 2010 15:58:52 +0000 (16:58 +0100)]
Rewrote the data conversion logic in ajax. Should be cleaner and faster.
jaubourg [Tue, 21 Dec 2010 12:06:41 +0000 (13:06 +0100)]
Renamed jQuery.xhr.bindTransport as jQuery.xhr.transport. Generalized the implementation and made prefilters use the same logic. Cleaned up code and removed as many loops and each as possible.
jaubourg [Mon, 20 Dec 2010 23:56:00 +0000 (00:56 +0100)]
Fixed a loop that only worked in webkit.
jaubourg [Mon, 20 Dec 2010 18:09:15 +0000 (19:09 +0100)]
Added deferred to core. Used internally for DOM readyness and ajax callbacks.
jaubourg [Tue, 21 Dec 2010 16:04:07 +0000 (17:04 +0100)]
Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning).
jaubourg [Tue, 21 Dec 2010 15:58:52 +0000 (16:58 +0100)]
Rewrote the data conversion logic in ajax. Should be cleaner and faster.
jaubourg [Tue, 21 Dec 2010 12:06:41 +0000 (13:06 +0100)]
Renamed jQuery.xhr.bindTransport as jQuery.xhr.transport. Generalized the implementation and made prefilters use the same logic. Cleaned up code and removed as many loops and each as possible.
jaubourg [Mon, 20 Dec 2010 23:56:00 +0000 (00:56 +0100)]
Fixed a loop that only worked in webkit.
jaubourg [Mon, 20 Dec 2010 18:09:15 +0000 (19:09 +0100)]
Added deferred to core. Used internally for DOM readyness and ajax callbacks.
jaubourg [Thu, 30 Dec 2010 16:06:53 +0000 (17:06 +0100)]
Simplified the way a Promise is tested for (removed promiseMarker). Removed isCancelled helper method from _Deferred, wasn't used nor tested. Reworked jQuery.Deferred and removed unnecessary variables. Also ensured a Promise will return itself when asked for a Promise. Finally, the jQuery.when tests have been revamped.
Jonas Pfenniger [Thu, 30 Dec 2010 07:38:28 +0000 (01:38 -0600)]
Update Rakefile to remove module wrappers (feature parity with make and ant). Update Makefile to avoid rebuilding jquery.js when it is not necessary to do so.
Colin Snover [Thu, 30 Dec 2010 07:16:39 +0000 (01:16 -0600)]
Remove patch for very early versions of Opera 9 that made it impossible to animate values smaller than -10000. Fixes #7193. Thanks to igorw for initial patch & test case.
Colin Snover [Thu, 30 Dec 2010 06:34:48 +0000 (00:34 -0600)]
Clean trailing whitespace from all files.
Colin Snover [Thu, 30 Dec 2010 06:02:56 +0000 (00:02 -0600)]
Merge branch 'fix7762' into jquery Fixes #7762.
Colin Snover [Thu, 30 Dec 2010 05:58:03 +0000 (23:58 -0600)]
Update CommonJS module registration to check to see if define is a function instead of just not undefined.
jaubourg [Thu, 30 Dec 2010 03:43:31 +0000 (04:43 +0100)]
Merge branch 'master' of github.com:jquery/jquery into deferred
jaubourg [Thu, 30 Dec 2010 03:41:52 +0000 (04:41 +0100)]
Fix for #7865. Scripts onload handler passes event as first parameter so statusText is now passed as second argument for aborts.
jaubourg [Wed, 29 Dec 2010 17:44:45 +0000 (18:44 +0100)]
Revised conversion logic to handle converter equal to true properly.
jaubourg [Tue, 28 Dec 2010 03:13:44 +0000 (04:13 +0100)]
Introduced a new promise method on deferreds that returns an immutable object (exposing then, fail, isResolved, isRejected and promise itself only). Remove $.isDeferred and moved logic directly into $.when. Made sure $.when returns a promise by using promise(). Used promise() in ajax code too.
jaubourg [Tue, 28 Dec 2010 01:30:51 +0000 (02:30 +0100)]
Renamed several ajaxSettings options. Removed cors test, fixed failing cors test.
jaubourg [Tue, 28 Dec 2010 01:02:31 +0000 (02:02 +0100)]
Merge branch 'master' of github.com:jquery/jquery into deferred
Dave Methvin [Mon, 27 Dec 2010 19:43:52 +0000 (13:43 -0600)]
Don't cache non-html strings in buildFragment to avoid possible collision with the names of Object methods like toString. Also makes the unit tests 0.5% to 8% faster. Fixes #6779.
Dave Methvin [Mon, 27 Dec 2010 19:30:05 +0000 (13:30 -0600)]
When a native browser event is bubbling up the DOM, make sure that the correct isDefaultPrevented value is reflected by jQuery's Event object. Fixes #7793.
jrburke [Mon, 27 Dec 2010 19:01:20 +0000 (13:01 -0600)]
Register as a CommonJS async module if in that kind of environment. Fixes #7102.
Dave Methvin [Mon, 27 Dec 2010 17:43:48 +0000 (12:43 -0500)]
Test for standard createEvent before IE-specific click method.
Don't fallback to fake click; let's see which browsers fail, if any.
Colin Snover [Mon, 27 Dec 2010 04:08:41 +0000 (22:08 -0600)]
Merge SlexAxton/jquery:master into jquery/jquery:
Alex Sexton [Mon, 11 Oct 2010 16:54:00 +0000 (11:54 -0500)]
Changed the expando string to use a random number instead of the time, so collisions become less likely. Also added jQuery version to instantly differentiate separate versions of jQuery (a common use case for noConflict, etc, when two jQuery instances are on the page). Fixes #6842.
Colin Snover [Mon, 27 Dec 2010 02:56:20 +0000 (20:56 -0600)]
DRY out $.get and $.post. Fixes #7847. Thanks to cowboy for the patch.
Ben Alman [Sun, 26 Dec 2010 22:49:01 +0000 (22:49 +0000)]
Removed unnecessary upper/lowercase, it's all just lowercase now (since $.ajax will uppercase as-needed).
Colin Snover [Sun, 26 Dec 2010 20:28:49 +0000 (14:28 -0600)]
Clearing event handlers on unload is no longer necessary in any version of IE. This issue causing memory leaks between pages was fixed in MS07-033.
Colin Snover [Sun, 26 Dec 2010 20:28:13 +0000 (14:28 -0600)]
Fix whitespace in event.js
Ben Alman [Sun, 26 Dec 2010 18:51:29 +0000 (18:51 +0000)]
WETness getting you down? Fear not, the $.get and $.post methods are now 866% DRYer. This fixes #7847.
Colin Snover [Sun, 26 Dec 2010 16:35:14 +0000 (10:35 -0600)]
Fix reliableHiddenOffsets test was not working properly when table cells have borders, causing unnecessary slowness in some browsers. Thanks to matjas for his $.support test page.
jaubourg [Sat, 25 Dec 2010 22:00:25 +0000 (23:00 +0100)]
Revised logic in data conversion to account for when dataFilter modifies the dataTypes list.
jaubourg [Sat, 25 Dec 2010 17:54:37 +0000 (18:54 +0100)]
Removed re-usability from jXHR object (no more open, send & onreadystatechange support). Streamlined the implementation and put it back into ajax.js (removed xhr.js in the process). Went back to a more simple & direct approach to options handling (keeping much room to further minification-related optimizations). Code is cleaner, smaller & faster. Removed & edited unit tests accordingly. All build files have had xhr.js removed.
jaubourg [Sat, 25 Dec 2010 14:38:33 +0000 (15:38 +0100)]
Removed dataCheckers, added true as possible value for dataConverters indicating dataType equivalence (ie. no conversion has to be performed).
unknown [Sat, 25 Dec 2010 11:52:53 +0000 (12:52 +0100)]
Removed custom method in isDeferred and when.
unknown [Sat, 25 Dec 2010 00:29:04 +0000 (01:29 +0100)]
Deferred cannot be cancelled by returning false in a callback. Exception in the callback are still propagated and execution of remaining callbacks is still possible.
unknown [Sat, 25 Dec 2010 00:27:40 +0000 (01:27 +0100)]
Removed a console.log :/
unknown [Fri, 24 Dec 2010 17:53:55 +0000 (18:53 +0100)]
Capitalized Deferred & _Deferred to clearly mark them as new types, like Event.
unknown [Fri, 24 Dec 2010 17:02:45 +0000 (18:02 +0100)]
Changed dataConverters key format.
unknown [Fri, 24 Dec 2010 17:02:00 +0000 (18:02 +0100)]
jQuery.parseXML extracted from ajax & added to core, needs unit testing.
Dave Methvin [Fri, 24 Dec 2010 14:53:39 +0000 (09:53 -0500)]
Simplify the check for isDefaultPrevented.
unknown [Fri, 24 Dec 2010 12:03:06 +0000 (13:03 +0100)]
Merge branch 'deferred' of github.com:jquery/jquery into deferred
jaubourg [Tue, 21 Dec 2010 16:04:07 +0000 (17:04 +0100)]
Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning).
jaubourg [Tue, 21 Dec 2010 15:58:52 +0000 (16:58 +0100)]
Rewrote the data conversion logic in ajax. Should be cleaner and faster.
jaubourg [Tue, 21 Dec 2010 12:06:41 +0000 (13:06 +0100)]
Renamed jQuery.xhr.bindTransport as jQuery.xhr.transport. Generalized the implementation and made prefilters use the same logic. Cleaned up code and removed as many loops and each as possible.
jaubourg [Mon, 20 Dec 2010 23:56:00 +0000 (00:56 +0100)]
Fixed a loop that only worked in webkit.
jaubourg [Mon, 20 Dec 2010 18:09:15 +0000 (19:09 +0100)]
Added deferred to core. Used internally for DOM readyness and ajax callbacks.
Dave Methvin [Thu, 23 Dec 2010 21:21:14 +0000 (16:21 -0500)]
When a native browser event is bubbling up the DOM, make sure that the correct isDefaultPrevented value is reflected by jQuery's Event object. Fixes #7793.
Colin Snover [Thu, 23 Dec 2010 00:54:22 +0000 (18:54 -0600)]
Fix fix for #6481 introduced at
7862c45ad2f32096383a21b8b301155787724476 which did not like it when Array.prototype was modified on empty arrays.
Colin Snover [Thu, 23 Dec 2010 00:31:33 +0000 (18:31 -0600)]
Don't use for-in loops on Arrays. Fixes #7817. Thanks to dmethvin.
Conflicts:
src/manipulation.js
Colin Snover [Thu, 23 Dec 2010 00:19:30 +0000 (18:19 -0600)]
Update cloneCopyEvent so that it does not create superfluous data objects when cloning elements. Exposes a new method, $.hasData. Fixes #7165. Thanks to DaveMethvin and iliakan for their help.
Colin Snover [Thu, 23 Dec 2010 00:17:58 +0000 (18:17 -0600)]
Code style fix
Colin Snover [Wed, 22 Dec 2010 21:03:01 +0000 (15:03 -0600)]
More unit tests and a $.hasData that works for JS objects too.
Colin Snover [Wed, 22 Dec 2010 20:54:37 +0000 (14:54 -0600)]
Update jQuery.hasData to always return a boolean, with unit tests.
Colin Snover [Wed, 22 Dec 2010 20:43:17 +0000 (14:43 -0600)]
Remove code for ticket #7717 which has been marked WONTFIX to match existing $.data functionality and to prevent infinite loops caused by circular references.
Colin Snover [Wed, 22 Dec 2010 15:15:41 +0000 (09:15 -0600)]
Fix a potential error in the previous commit caused by the use of a separate index variable. Thanks to dmethvin for the review.
Colin Snover [Wed, 22 Dec 2010 15:13:28 +0000 (09:13 -0600)]
Fix a potential error in the previous commit caused by the use of a separate index variable. Thanks to dmethvin for the review.
Colin Snover [Wed, 22 Dec 2010 15:13:28 +0000 (09:13 -0600)]
Fix a potential error in the previous commit caused by the use of a separate index variable.
jaubourg [Tue, 21 Dec 2010 16:04:07 +0000 (17:04 +0100)]
Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning).
jaubourg [Tue, 21 Dec 2010 15:58:52 +0000 (16:58 +0100)]
Rewrote the data conversion logic in ajax. Should be cleaner and faster.
Dave Methvin [Tue, 21 Dec 2010 15:00:49 +0000 (10:00 -0500)]
Use for loop instead of for/in loop to protect sanctity of Array.prototype. Fixes #7817. Test case for this commit is shared with the fix for #6355, https://github.com/jquery/jquery/pull/140 .
jaubourg [Tue, 21 Dec 2010 12:06:41 +0000 (13:06 +0100)]
Renamed jQuery.xhr.bindTransport as jQuery.xhr.transport. Generalized the implementation and made prefilters use the same logic. Cleaned up code and removed as many loops and each as possible.
Dave Methvin [Tue, 21 Dec 2010 03:23:59 +0000 (22:23 -0500)]
Use a for loop rather than for/in loop when copying events, so that code will work with an augmented Array.prototype. Fixes 7809.
jaubourg [Mon, 20 Dec 2010 23:56:00 +0000 (00:56 +0100)]
Fixed a loop that only worked in webkit.
jaubourg [Mon, 20 Dec 2010 18:09:15 +0000 (19:09 +0100)]
Added deferred to core. Used internally for DOM readyness and ajax callbacks.
Colin Snover [Sun, 19 Dec 2010 21:33:53 +0000 (15:33 -0600)]
Fix #7717 and #7165. Thanks to dmethvin and iliakan for their help fixing these issues.
Colin Snover [Thu, 16 Dec 2010 07:29:06 +0000 (01:29 -0600)]
Address some code style issues in the clone fix.
Colin Snover [Tue, 14 Dec 2010 06:40:28 +0000 (00:40 -0600)]
Fixes #7397.
Colin Snover [Tue, 14 Dec 2010 06:37:11 +0000 (00:37 -0600)]
Merge branch 'bug_7397' of https://github.com/rwldrn/jquery into rwldrn-bug_7397
Colin Snover [Mon, 13 Dec 2010 02:01:47 +0000 (20:01 -0600)]
More specific version numbers.
Colin Snover [Mon, 13 Dec 2010 01:23:22 +0000 (19:23 -0600)]
Speed up & compatibility improvements for new clone mechanism in IE.
Colin Snover [Sun, 12 Dec 2010 19:37:00 +0000 (13:37 -0600)]
Return test comments to ASCII space
Colin Snover [Sun, 12 Dec 2010 08:39:06 +0000 (02:39 -0600)]
Merge branch 'bug5566' into csnover-bug5566. Fixes #4386, #5566, #6997.
Conflicts:
src/manipulation.js
test/unit/manipulation.js
Colin Snover [Sun, 12 Dec 2010 08:20:31 +0000 (02:20 -0600)]
Fix the clone method to be a little less insane in IE, which fixes the new event-cloning clone() as well as probably a bunch of IE-related clone bugs.
jaubourg [Sat, 11 Dec 2010 01:41:39 +0000 (02:41 +0100)]
Simplified headers tests: removed multiline headers (support is far too servers & browsers dependant) and made all the tests in a single request.
jaubourg [Sat, 11 Dec 2010 01:21:54 +0000 (02:21 +0100)]
Tweaked the headers test to be apache independent and actually work.