Commit Graph

2939 Commits

Author SHA1 Message Date
Ben Alman
78a6f5b152 Removed unnecessary upper/lowercase, it's all just lowercase now (since $.ajax will uppercase as-needed). 2010-12-26 22:49:01 +00:00
Colin Snover
37d297c67f 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. 2010-12-26 14:28:49 -06:00
Colin Snover
a939ade9c6 Fix whitespace in event.js 2010-12-26 14:28:13 -06:00
Ben Alman
1830db4226 WETness getting you down? Fear not, the $.get and $.post methods are now 866% DRYer. This fixes #7847. 2010-12-26 18:52:27 +00:00
Colin Snover
52b1709b94 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. 2010-12-26 10:35:14 -06:00
jaubourg
85f0dda562 Revised logic in data conversion to account for when dataFilter modifies the dataTypes list. 2010-12-25 23:00:25 +01:00
jaubourg
f7ed2aca56 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. 2010-12-25 18:54:37 +01:00
jaubourg
00fb8a9ad6 Removed dataCheckers, added true as possible value for dataConverters indicating dataType equivalence (ie. no conversion has to be performed). 2010-12-25 15:38:33 +01:00
unknown
5237b09602 Removed custom method in isDeferred and when. 2010-12-25 12:52:53 +01:00
unknown
846c52d1f8 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. 2010-12-25 01:29:04 +01:00
unknown
e3f3f18927 Removed a console.log :/ 2010-12-25 01:27:40 +01:00
unknown
1e1a9c7eb0 Capitalized Deferred & _Deferred to clearly mark them as new types, like Event. 2010-12-24 18:53:55 +01:00
unknown
d303687815 Changed dataConverters key format. 2010-12-24 18:02:45 +01:00
unknown
11642ba20c jQuery.parseXML extracted from ajax & added to core, needs unit testing. 2010-12-24 18:02:00 +01:00
Dave Methvin
c9e8a95709 Simplify the check for isDefaultPrevented. 2010-12-24 09:53:39 -05:00
unknown
8ece429d12 Merge branch 'deferred' of github.com:jquery/jquery into deferred 2010-12-24 13:03:06 +01:00
jaubourg
76102f4d8b Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning). 2010-12-24 12:59:03 +01:00
jaubourg
38101be048 Rewrote the data conversion logic in ajax. Should be cleaner and faster. 2010-12-24 12:59:02 +01:00
jaubourg
0daf7223d0 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. 2010-12-24 12:59:01 +01:00
jaubourg
56628c7adf Fixed a loop that only worked in webkit. 2010-12-24 12:55:47 +01:00
jaubourg
116c82b027 Added deferred to core. Used internally for DOM readyness and ajax callbacks. 2010-12-24 12:55:46 +01:00
Dave Methvin
0b6afcedd2 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. 2010-12-23 19:59:23 -05:00
Colin Snover
1f92edee20 Fix fix for #6481 introduced at 7862c45ad2 which did not like it when Array.prototype was modified on empty arrays. 2010-12-22 18:54:22 -06:00
Colin Snover
82ac384b49 Don't use for-in loops on Arrays. Fixes #7817. Thanks to dmethvin.
Conflicts:
	src/manipulation.js
2010-12-22 18:32:33 -06:00
Colin Snover
f28c774f2c 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. 2010-12-22 18:19:30 -06:00
Colin Snover
a2bf7ab3c0 Code style fix 2010-12-22 18:17:58 -06:00
Colin Snover
e199ead4cb More unit tests and a $.hasData that works for JS objects too. 2010-12-22 15:03:01 -06:00
Colin Snover
f5d4bf8920 Update jQuery.hasData to always return a boolean, with unit tests. 2010-12-22 14:54:37 -06:00
Colin Snover
445fdf720c Remove code for ticket #7717 which has been marked WONTFIX to match existing $.data functionality and to prevent infinite loops caused by circular references. 2010-12-22 14:43:17 -06:00
Colin Snover
2a47ceae5b Fix a potential error in the previous commit caused by the use of a separate index variable. Thanks to dmethvin for the review. 2010-12-22 09:16:30 -06:00
Colin Snover
5607bd8d53 Fix a potential error in the previous commit caused by the use of a separate index variable. Thanks to dmethvin for the review. 2010-12-22 09:14:53 -06:00
Colin Snover
7f617e0c9f Fix a potential error in the previous commit caused by the use of a separate index variable. 2010-12-22 09:13:28 -06:00
jaubourg
c810c62a67 Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning). 2010-12-21 17:04:07 +01:00
jaubourg
1db2f02cc7 Rewrote the data conversion logic in ajax. Should be cleaner and faster. 2010-12-21 16:58:52 +01:00
Dave Methvin
acab4ab0e5 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 . 2010-12-21 10:00:49 -05:00
jaubourg
91d32e8f96 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. 2010-12-21 13:06:41 +01:00
Dave Methvin
4424bda377 Use a for loop rather than for/in loop when copying events, so that code will work with an augmented Array.prototype. Fixes 7809. 2010-12-20 22:23:59 -05:00
jaubourg
9e3f053c65 Fixed a loop that only worked in webkit. 2010-12-21 00:56:00 +01:00
jaubourg
88d97deb77 Added deferred to core. Used internally for DOM readyness and ajax callbacks. 2010-12-20 19:09:15 +01:00
Colin Snover
faefbb1ad0 Fix #7717 and #7165. Thanks to dmethvin and iliakan for their help fixing these issues. 2010-12-19 15:33:53 -06:00
Colin Snover
291b1edf44 Address some code style issues in the clone fix. 2010-12-16 01:29:06 -06:00
Colin Snover
2defa4863a Fixes #7397. 2010-12-14 00:40:28 -06:00
Colin Snover
efcf1a7921 Merge branch 'bug_7397' of https://github.com/rwldrn/jquery into rwldrn-bug_7397 2010-12-14 00:37:11 -06:00
Colin Snover
c9c9057c4d More specific version numbers. 2010-12-12 20:01:47 -06:00
Colin Snover
1a3fd3329d Speed up & compatibility improvements for new clone mechanism in IE. 2010-12-12 19:23:22 -06:00
Colin Snover
8b33e23ea0 Return test comments to ASCII space 2010-12-12 13:37:00 -06:00
Colin Snover
4fae75d575 Merge branch 'bug5566' into csnover-bug5566. Fixes #4386, #5566, #6997.
Conflicts:
	src/manipulation.js
	test/unit/manipulation.js
2010-12-12 02:39:06 -06:00
Colin Snover
7481a3645a 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. 2010-12-12 02:20:31 -06:00
jaubourg
974637d639 Simplified headers tests: removed multiline headers (support is far too servers & browsers dependant) and made all the tests in a single request. 2010-12-11 02:41:39 +01:00
jaubourg
0b0889ceaa Tweaked the headers test to be apache independent and actually work. 2010-12-11 02:21:54 +01:00