Commit graph

  • 3c6f1380fa Revised conversion logic to handle converter equal to true properly. jaubourg 2010-12-29 18:44:45 +0100
  • 6dbffb8596 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 2010-12-28 04:13:44 +0100
  • 6165cc45b7 Renamed several ajaxSettings options. Removed cors test, fixed failing cors test. jaubourg 2010-12-28 02:30:51 +0100
  • 2a5c16f217 Revised logic in data conversion to account for when dataFilter modifies the dataTypes list. jaubourg 2010-12-25 23:00:25 +0100
  • 981d1e08eb 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 2010-12-25 18:54:37 +0100
  • 6f53be1839 Removed dataCheckers, added true as possible value for dataConverters indicating dataType equivalence (ie. no conversion has to be performed). jaubourg 2010-12-25 15:38:33 +0100
  • 240d8b681e Removed custom method in isDeferred and when. unknown 2010-12-25 12:52:53 +0100
  • 23d455b446 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 2010-12-25 01:29:04 +0100
  • fd63416ab1 Removed a console.log :/ unknown 2010-12-25 01:27:40 +0100
  • 2d4001b82c Capitalized Deferred & _Deferred to clearly mark them as new types, like Event. unknown 2010-12-24 18:53:55 +0100
  • 22e28b01e6 Changed dataConverters key format. unknown 2010-12-24 18:02:45 +0100
  • 524bf39400 jQuery.parseXML extracted from ajax & added to core, needs unit testing. unknown 2010-12-24 18:02:00 +0100
  • 5bfbe7eaf6 Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning). jaubourg 2010-12-21 17:04:07 +0100
  • d5bb001b9a Rewrote the data conversion logic in ajax. Should be cleaner and faster. jaubourg 2010-12-21 16:58:52 +0100
  • e29ebbc199 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 2010-12-21 13:06:41 +0100
  • 2fec5dbecd Fixed a loop that only worked in webkit. jaubourg 2010-12-21 00:56:00 +0100
  • 39d96ab8c5 Added deferred to core. Used internally for DOM readyness and ajax callbacks. jaubourg 2010-12-20 19:09:15 +0100
  • 43828b7482 Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning). jaubourg 2010-12-21 17:04:07 +0100
  • fef0f63526 Rewrote the data conversion logic in ajax. Should be cleaner and faster. jaubourg 2010-12-21 16:58:52 +0100
  • 4c49c87d4d 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 2010-12-21 13:06:41 +0100
  • c072dbd4e2 Fixed a loop that only worked in webkit. jaubourg 2010-12-21 00:56:00 +0100
  • 5bacb53866 Added deferred to core. Used internally for DOM readyness and ajax callbacks. jaubourg 2010-12-20 19:09:15 +0100
  • 7b1e873cd9 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 2010-12-30 17:06:53 +0100
  • c1625f6b79 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. Jonas Pfenniger 2010-12-30 01:38:28 -0600
  • 4eeae8b0bc 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 2010-12-30 01:16:39 -0600
  • 3e0cc81504 Clean trailing whitespace from all files. Colin Snover 2010-12-30 00:34:48 -0600
  • 429b078dc7 Merge branch 'fix7762' into jquery master. Fixes #7762. Colin Snover 2010-12-30 00:02:56 -0600
  • 9029dc02a2 Update CommonJS module registration to check to see if define is a function instead of just not undefined. Colin Snover 2010-12-29 23:58:03 -0600
  • 64902e0345 Merge branch 'master' of github.com:jquery/jquery into deferred jaubourg 2010-12-30 04:43:31 +0100
  • dfa5707306 Fix for #7865. Scripts onload handler passes event as first parameter so statusText is now passed as second argument for aborts. jaubourg 2010-12-30 04:41:52 +0100
  • 7490eb4f8e Revised conversion logic to handle converter equal to true properly. jaubourg 2010-12-29 18:44:45 +0100
  • c27d5ca6f5 By default, use document root rather than current selection's context when add()ing elements. Fixes #7853. Dave Methvin 2010-12-28 21:07:04 -0500
  • 54d965ffa5 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 2010-12-28 04:13:44 +0100
  • 8c9d32723a Renamed several ajaxSettings options. Removed cors test, fixed failing cors test. jaubourg 2010-12-28 02:30:51 +0100
  • 97b32d7830 Merge branch 'master' of github.com:jquery/jquery into deferred jaubourg 2010-12-28 02:02:31 +0100
  • 5fd21fc02b 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 2010-12-27 13:43:52 -0600
  • 64ee5581af 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. Dave Methvin 2010-12-27 13:30:05 -0600
  • 6ffa730721 Register as a CommonJS async module if in that kind of environment. Fixes #7102. jrburke 2010-12-27 13:01:20 -0600
  • b8931f7448 Test for standard createEvent before IE-specific click method. Don't fallback to fake click; let's see which browsers fail, if any. Dave Methvin 2010-12-27 12:43:48 -0500
  • 01cba2ecaa Merge SlexAxton/jquery:master into jquery/jquery:master. Colin Snover 2010-12-26 22:08:41 -0600
  • faabb2c318 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. Alex Sexton 2010-10-11 11:54:00 -0500
  • 4443371dba DRY out $.get and $.post. Fixes #7847. Thanks to cowboy for the patch. Colin Snover 2010-12-26 20:56:20 -0600
  • 78a6f5b152 Removed unnecessary upper/lowercase, it's all just lowercase now (since $.ajax will uppercase as-needed). Ben Alman 2010-12-26 22:49:01 +0000
  • 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. Colin Snover 2010-12-26 14:28:49 -0600
  • a939ade9c6 Fix whitespace in event.js Colin Snover 2010-12-26 14:28:13 -0600
  • 1830db4226 WETness getting you down? Fear not, the $.get and $.post methods are now 866% DRYer. This fixes #7847. Ben Alman 2010-12-26 18:51:29 +0000
  • 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. Colin Snover 2010-12-26 10:35:14 -0600
  • 85f0dda562 Revised logic in data conversion to account for when dataFilter modifies the dataTypes list. jaubourg 2010-12-25 23:00:25 +0100
  • 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. jaubourg 2010-12-25 18:54:37 +0100
  • 00fb8a9ad6 Removed dataCheckers, added true as possible value for dataConverters indicating dataType equivalence (ie. no conversion has to be performed). jaubourg 2010-12-25 15:38:33 +0100
  • 5237b09602 Removed custom method in isDeferred and when. unknown 2010-12-25 12:52:53 +0100
  • 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. unknown 2010-12-25 01:29:04 +0100
  • e3f3f18927 Removed a console.log :/ unknown 2010-12-25 01:27:40 +0100
  • 1e1a9c7eb0 Capitalized Deferred & _Deferred to clearly mark them as new types, like Event. unknown 2010-12-24 18:53:55 +0100
  • d303687815 Changed dataConverters key format. unknown 2010-12-24 18:02:45 +0100
  • 11642ba20c jQuery.parseXML extracted from ajax & added to core, needs unit testing. unknown 2010-12-24 18:02:00 +0100
  • c9e8a95709 Simplify the check for isDefaultPrevented. Dave Methvin 2010-12-24 09:53:39 -0500
  • 8ece429d12 Merge branch 'deferred' of github.com:jquery/jquery into deferred unknown 2010-12-24 13:03:06 +0100
  • 76102f4d8b Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning). jaubourg 2010-12-21 17:04:07 +0100
  • 38101be048 Rewrote the data conversion logic in ajax. Should be cleaner and faster. jaubourg 2010-12-21 16:58:52 +0100
  • 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. jaubourg 2010-12-21 13:06:41 +0100
  • 56628c7adf Fixed a loop that only worked in webkit. jaubourg 2010-12-21 00:56:00 +0100
  • 116c82b027 Added deferred to core. Used internally for DOM readyness and ajax callbacks. jaubourg 2010-12-20 19:09:15 +0100
  • 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. Dave Methvin 2010-12-23 16:21:14 -0500
  • 1f92edee20 Fix fix for #6481 introduced at 7862c45ad2 which did not like it when Array.prototype was modified on empty arrays. Colin Snover 2010-12-22 18:54:22 -0600
  • 82ac384b49 Don't use for-in loops on Arrays. Fixes #7817. Thanks to dmethvin. Conflicts: src/manipulation.js Colin Snover 2010-12-22 18:31:33 -0600
  • 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. Colin Snover 2010-12-22 18:19:30 -0600
  • a2bf7ab3c0 Code style fix Colin Snover 2010-12-22 18:17:58 -0600
  • e199ead4cb More unit tests and a $.hasData that works for JS objects too. Colin Snover 2010-12-22 15:03:01 -0600
  • f5d4bf8920 Update jQuery.hasData to always return a boolean, with unit tests. Colin Snover 2010-12-22 14:54:37 -0600
  • 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. Colin Snover 2010-12-22 14:43:17 -0600
  • 18fa1fd9da Getting window dimensions currently fails in Nokia browsers, causing JS error (and consequently making jQuery Mobile fail to render the page). Based on a tip from Ben Nolan, this fix returns window.screen[width|height] if the other attempts at getting window dimensions fail. On mobile at least, it seems to make sense, and on desktop (assuming this issue would ever show up on desktop), this might be better than returning false or undefined. scottjehl 2010-12-22 15:24:07 -0500
  • 2a47ceae5b 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 2010-12-22 09:15:41 -0600
  • 5607bd8d53 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 2010-12-22 09:13:28 -0600
  • 7f617e0c9f Fix a potential error in the previous commit caused by the use of a separate index variable. Colin Snover 2010-12-22 09:13:28 -0600
  • c810c62a67 Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning). jaubourg 2010-12-21 17:04:07 +0100
  • 1db2f02cc7 Rewrote the data conversion logic in ajax. Should be cleaner and faster. jaubourg 2010-12-21 16:58:52 +0100
  • 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 . Dave Methvin 2010-12-21 10:00:49 -0500
  • 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. jaubourg 2010-12-21 13:06:41 +0100
  • 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. Dave Methvin 2010-12-20 22:23:59 -0500
  • 9e3f053c65 Fixed a loop that only worked in webkit. jaubourg 2010-12-21 00:56:00 +0100
  • 88d97deb77 Added deferred to core. Used internally for DOM readyness and ajax callbacks. jaubourg 2010-12-20 19:09:15 +0100
  • faefbb1ad0 Fix #7717 and #7165. Thanks to dmethvin and iliakan for their help fixing these issues. Colin Snover 2010-12-19 15:33:53 -0600
  • ade531cfaa Noted which browsers don't support Function#bind. Gianni Chiappetta 2010-12-18 19:26:36 -0500
  • 6bc9fc7c10 Perf. improvement based on fearphage's suggestion (direct vs call vs apply). Gianni Chiappetta 2010-12-18 19:17:37 -0500
  • 1ebb5ab3e1 Added list of browsers that currently support Function#bind. Gianni Chiappetta 2010-12-16 16:04:23 -0500
  • 291b1edf44 Address some code style issues in the clone fix. Colin Snover 2010-12-16 01:29:06 -0600
  • 5b1b57850c Add a quick test to $.support for native bind. Gianni Chiappetta 2010-12-15 18:31:10 -0500
  • 9f8cd6c499 Fixing $.proxy to work like (and use) Function.prototype.bind (ticket #7783) Gianni Chiappetta 2010-12-14 21:53:04 -0500
  • 2defa4863a Fixes #7397. Colin Snover 2010-12-14 00:40:28 -0600
  • efcf1a7921 Merge branch 'bug_7397' of https://github.com/rwldrn/jquery into rwldrn-bug_7397 Colin Snover 2010-12-14 00:37:11 -0600
  • c9c9057c4d More specific version numbers. Colin Snover 2010-12-12 20:01:47 -0600
  • 1a3fd3329d Speed up & compatibility improvements for new clone mechanism in IE. Colin Snover 2010-12-12 19:23:22 -0600
  • 8b33e23ea0 Return test comments to ASCII space Colin Snover 2010-12-12 13:37:00 -0600
  • 4fae75d575 Merge branch 'bug5566' into csnover-bug5566. Fixes #4386, #5566, #6997. Colin Snover 2010-12-12 02:39:06 -0600
  • 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. Colin Snover 2010-12-12 02:20:31 -0600
  • 974637d639 Simplified headers tests: removed multiline headers (support is far too servers & browsers dependant) and made all the tests in a single request. jaubourg 2010-12-11 02:41:39 +0100
  • 0b0889ceaa Tweaked the headers test to be apache independent and actually work. jaubourg 2010-12-11 02:21:54 +0100
  • 9d3a4a2b40 Removed bind/unbind from xhr emulation: success/error/complete are deferred not events so these methods didn't really make sense in the first place. jaubourg 2010-12-11 02:04:13 +0100
  • 8ab5e1e45c Added the regexp to remove module closures to the ant build file to be on par with the Makefile. jaubourg 2010-12-11 01:56:29 +0100