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 |
|
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 |
|
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 |
|
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 |
|
Anton M
|
6b08d88d04
|
Fix some whitespace issues.
|
2011-02-15 22:09:09 +01:00 |
|
jeresig
|
3ad8dd242a
|
Merge branch 'fix8033' of https://github.com/SlexAxton/jquery into SlexAxton-fix8033
|
2011-02-14 12:35:27 -05:00 |
|
Mathias Bynens
|
462bb1f66a
|
Fixes #8098. Use the fast document.head when available. Don't set unneeded "script.type = text/javascript".
|
2011-02-02 00:59:00 +01:00 |
|
jaubourg
|
4e97543051
|
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.
|
2011-01-31 14:49:14 +01:00 |
|
jeresig
|
749d41f7de
|
Rename jQuery.subclass() to jQuery.sub().
|
2011-01-31 08:21:42 -05:00 |
|
Digitalxero
|
e00f74c43b
|
Make sure subclass is a proper subclass not just subclassing the fn methods. Fixes #7979.
|
2011-01-27 13:35:06 -05:00 |
|
gnarf
|
ab1d9a8a2c
|
Remove unneeded and confusing variable definition for better readability.
|
2011-01-27 00:23:08 +01:00 |
|
Rick Waldron
|
8d050558d3
|
#8044 Removes unnec. rnonword var
|
2011-01-25 03:52:17 +01:00 |
|
Alex Sexton
|
c50b74372c
|
Moved jQuery global leak to end of file so accidental gEBCN overrides in prototype don't get caught up in confusion. Fixed tests to reference jQuery variable instead of $ (best practice). Fixes #8033
|
2011-01-23 21:19:33 -06:00 |
|
jaubourg
|
30082d9eba
|
Fixes some coding style issues in core.js. In jQuery.fn.ready(), simplifies the whole code (for better backward compatibility) and removes redefinition of the function itself (in order not to clash with proxying). Also, in jQuery.when(), removes unnecessary closure and early rejection test and makes use of then instead of done/fail (better interoperability).
|
2011-01-23 05:01:36 +01:00 |
|
jeresig
|
61e80c55df
|
Merge branch '8013p' of https://github.com/rwldrn/jquery into rwldrn-8013p
|
2011-01-21 11:20:05 -05:00 |
|
rwldrn
|
6458885881
|
Cleaned up; fixes per review
|
2011-01-20 15:25:04 -05:00 |
|
jeresig
|
ea5ce8c2a9
|
Merge branch 'master' of github.com:jquery/jquery
|
2011-01-20 11:58:52 -05:00 |
|
jeresig
|
e4d0168893
|
Bring jQuery('#id') and jQuery('body') logic back into core (while leaving it in Sizzle at the same time). Was causing too much of a performance hit to leave it all to Sizzle.
|
2011-01-20 11:58:44 -05:00 |
|
jaubourg
|
f2b0c77dc8
|
Merge branch 'master' of github.com:jquery/jquery
|
2011-01-20 17:52:10 +01:00 |
|
jaubourg
|
a7cb93bee5
|
Renames Deferred's fire and fireReject methods as resolveWith and rejectWith respectively.
|
2011-01-20 17:51:57 +01:00 |
|
jeresig
|
0f6c7830ce
|
Fix typo in regex tweak from previous commit.
|
2011-01-20 11:46:50 -05:00 |
|
jeresig
|
c475222bfb
|
Move jQuery(...) selector speed-up logic into Sizzle(...) qSA handling. Additionally add in a new catch for Sizzle('.class') (avoid using qSA and use getElementsByClassName instead, where applicable).
|
2011-01-20 11:34:35 -05:00 |
|
Anton M
|
265cf0efa7
|
Remove an unused regex and optimize character escape regex usage.
|
2011-01-19 00:15:28 +01:00 |
|
Brandon Sterne
|
220a0ce162
|
Defer scriptEval test until first use to prevent Content Security Policy inline-script violations from occuring. Fixes #7371.
|
2011-01-17 16:31:12 -05:00 |
|
jaubourg
|
5798446b98
|
Put the split to get the list of promise methods out of the promise method itself and also switched from jQuery.each to a while loop to remove as much overhead as possible. Thanks go to scott_gonzalez for reminding me of this.
|
2011-01-16 18:33:32 +01:00 |
|
jaubourg
|
c272f5f7da
|
Implements joined jQuery.when statements. Makes it so calling jQuery.when with no parameter returns a resolved promise. Ensures promise method on promises supports the promise(obj) signature. Ensures a deferred and its promise always return the same promise (itself for the promise). Unit tests provided.
|
2011-01-16 17:41:39 +01:00 |
|
Jared Grippe
|
d483ce0a9c
|
added jQuery.subclass
|
2011-01-14 10:38:32 -05:00 |
|
Colin Snover
|
b14f02899e
|
Ensure that buildFragment clones elements properly in all browsers. Fixes #3879, #6655. Also improves form element clone tests and fixes bugs in $.fn.clone exposed by these new test cases related to the values of checkboxes and radio buttons in IE.
|
2011-01-09 18:38:44 -06:00 |
|
jaubourg
|
1ca82ccd94
|
Renamed "complete" to "done" in order to avoid conflicts with jXHR.complete.
|
2011-01-06 01:26:06 +01:00 |
|
jaubourg
|
47e4cc1a0f
|
Fixed mixing of tabs & spaces to make JSLint happier.
|
2011-01-06 01:18:03 +01:00 |
|
Colin Snover
|
e56de77df9
|
Cleaning up trailing whitespace again.
|
2011-01-05 15:44:07 -06:00 |
|
wycats
|
ae6655bcb6
|
Revert "Register as a CommonJS async module if in that kind of environment. Fixes #7102."
This reverts commit 6ffa730721 .
Conflicts:
src/core.js
|
2011-01-05 13:26:05 -08:00 |
|
jaubourg
|
cbf591152c
|
"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.
|
2011-01-05 04:29:30 +01:00 |
|
jaubourg
|
6fb9759a75
|
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.
|
2010-12-31 04:15:15 +01:00 |
|
jaubourg
|
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.
|
2010-12-31 04:15:11 +01:00 |
|
unknown
|
240d8b681e
|
Removed custom method in isDeferred and when.
|
2010-12-31 04:05:56 +01:00 |
|
unknown
|
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.
|
2010-12-31 04:05:55 +01:00 |
|
unknown
|
2d4001b82c
|
Capitalized Deferred & _Deferred to clearly mark them as new types, like Event.
|
2010-12-31 04:05:53 +01:00 |
|
unknown
|
524bf39400
|
jQuery.parseXML extracted from ajax & added to core, needs unit testing.
|
2010-12-31 04:05:50 +01:00 |
|
jaubourg
|
5bfbe7eaf6
|
Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning).
|
2010-12-31 04:05:49 +01:00 |
|
jaubourg
|
2fec5dbecd
|
Fixed a loop that only worked in webkit.
|
2010-12-31 04:02:33 +01:00 |
|
jaubourg
|
39d96ab8c5
|
Added deferred to core. Used internally for DOM readyness and ajax callbacks.
|
2010-12-31 04:01:39 +01:00 |
|
jaubourg
|
43828b7482
|
Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning).
|
2010-12-31 03:56:11 +01:00 |
|
jaubourg
|
c072dbd4e2
|
Fixed a loop that only worked in webkit.
|
2010-12-31 03:49:23 +01:00 |
|
jaubourg
|
5bacb53866
|
Added deferred to core. Used internally for DOM readyness and ajax callbacks.
|
2010-12-31 03:49:22 +01:00 |
|
Colin Snover
|
3e0cc81504
|
Clean trailing whitespace from all files.
|
2010-12-30 00:34:48 -06:00 |
|
Colin Snover
|
9029dc02a2
|
Update CommonJS module registration to check to see if define is a function instead of just not undefined.
|
2010-12-29 23:58:03 -06:00 |
|