aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Remove unneeded and confusing variable definition for better readability.gnarf2011-01-271-3/+2
| | | | | |
* | | | | | #8044 Removes unnec. rnonword varRick Waldron2011-01-251-3/+0
|/ / / / /
* | | | | Fixes some coding style issues in core.js. In jQuery.fn.ready(), simplifies ↵jaubourg2011-01-231-46/+26
| | | | | | | | | | | | | | | | | | | | 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).
* | | | | Merge branch '8013p' of https://github.com/rwldrn/jquery into rwldrn-8013pjeresig2011-01-211-1/+1
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Cleaned up; fixes per reviewrwldrn2011-01-201-1/+1
| | | | |
* | | | | Merge branch 'master' of github.com:jquery/jqueryjeresig2011-01-201-7/+7
|\ \ \ \ \
| * \ \ \ \ Merge branch 'master' of github.com:jquery/jqueryjaubourg2011-01-201-62/+16
| |\ \ \ \ \
| * | | | | | Renames Deferred's fire and fireReject methods as resolveWith and rejectWith ↵jaubourg2011-01-201-7/+7
| | |/ / / / | |/| | | | | | | | | | | | | | | | respectively.
* | | | | | Bring jQuery('#id') and jQuery('body') logic back into core (while leaving ↵jeresig2011-01-201-18/+57
| |/ / / / |/| | | | | | | | | | | | | | it in Sizzle at the same time). Was causing too much of a performance hit to leave it all to Sizzle.
* | | | | Fix typo in regex tweak from previous commit.jeresig2011-01-201-1/+1
| | | | |
* | | | | Move jQuery(...) selector speed-up logic into Sizzle(...) qSA handling. ↵jeresig2011-01-201-62/+16
|/ / / / | | | | | | | | | | | | Additionally add in a new catch for Sizzle('.class') (avoid using qSA and use getElementsByClassName instead, where applicable).
* | | | Remove an unused regex and optimize character escape regex usage.Anton M2011-01-191-7/+2
| | | |
* | | | Defer scriptEval test until first use to prevent Content Security Policy ↵Brandon Sterne2011-01-171-1/+1
| | | | | | | | | | | | | | | | inline-script violations from occuring. Fixes #7371.
* | | | Put the split to get the list of promise methods out of the promise method ↵jaubourg2011-01-161-4/+9
| | | | | | | | | | | | | | | | 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.
* | | | Implements joined jQuery.when statements. Makes it so calling jQuery.when ↵jaubourg2011-01-161-11/+36
| | | | | | | | | | | | | | | | 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.
* | | | added jQuery.subclassJared Grippe2011-01-141-5/+26
| | | |
* | | | Ensure that buildFragment clones elements properly in all browsers. Fixes ↵Colin Snover2011-01-091-1/+1
| | | | | | | | | | | | | | | | #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.
* | | | Renamed "complete" to "done" in order to avoid conflicts with jXHR.complete.jaubourg2011-01-061-8/+8
| | | |
* | | | Fixed mixing of tabs & spaces to make JSLint happier.jaubourg2011-01-061-4/+4
| | | |
* | | | Cleaning up trailing whitespace again.Colin Snover2011-01-051-32/+32
| | | |
* | | | Revert "Register as a CommonJS async module if in that kind of environment. ↵wycats2011-01-051-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #7102." This reverts commit 6ffa730721a8ebcd128f3dc202706e46d9cfe249. Conflicts: src/core.js
* | | | "then" renamed "complete" and new "then" method defined using "complete" and ↵jaubourg2011-01-051-20/+24
|/ / / | | | | | | | | | "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.
* | | Simplified the way a Promise is tested for (removed promiseMarker). Removed ↵jaubourg2010-12-311-29/+19
| | | | | | | | | | | | 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.
* | | Introduced a new promise method on deferreds that returns an immutable ↵jaubourg2010-12-311-14/+16
| | | | | | | | | | | | 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.
* | | Removed custom method in isDeferred and when.unknown2010-12-311-9/+4
| | |
* | | Deferred cannot be cancelled by returning false in a callback. Exception in ↵unknown2010-12-311-41/+34
| | | | | | | | | | | | the callback are still propagated and execution of remaining callbacks is still possible.
* | | Capitalized Deferred & _Deferred to clearly mark them as new types, like Event.unknown2010-12-311-6/+6
| | |
* | | jQuery.parseXML extracted from ajax & added to core, needs unit testing.unknown2010-12-311-0/+22
| | |
* | | Removed NFE to make old Safari happy and avoid leaks in IE (as per David ↵jaubourg2010-12-311-2/+2
| | | | | | | | | | | | Murdoch's warning).
* | | Fixed a loop that only worked in webkit.jaubourg2010-12-311-2/+2
| | |
* | | Added deferred to core. Used internally for DOM readyness and ajax callbacks.jaubourg2010-12-311-1/+1
| | |
* | | Removed NFE to make old Safari happy and avoid leaks in IE (as per David ↵jaubourg2010-12-311-2/+2
| | | | | | | | | | | | Murdoch's warning).
* | | Fixed a loop that only worked in webkit.jaubourg2010-12-311-6/+8
| | |
* | | Added deferred to core. Used internally for DOM readyness and ajax callbacks.jaubourg2010-12-311-36/+176
| | |
* | | Clean trailing whitespace from all files.Colin Snover2010-12-301-28/+28
| | |
* | | Update CommonJS module registration to check to see if define is a function ↵Colin Snover2010-12-291-1/+1
| | | | | | | | | | | | instead of just not undefined.
* | | Register as a CommonJS async module if in that kind of environment. Fixes #7102.jrburke2010-12-271-0/+5
|/ /
* | Backing out fb6c038bf00296480234c971a1664ac01ca1479e, was causing ↵jeresig2010-12-091-6/+0
| | | | | | | | jQuery.param tests to fail - unfixes #7413.
* | Merge branch 'explain-map-concat' of https://github.com/ajpiano/jquery into ↵jeresig2010-12-091-0/+1
|\ \ | | | | | | | | | ajpiano-explain-map-concat
| * | Add a comment explaining that jQuery.map flattens arraysadam j. sontag2010-11-271-0/+1
| | |
* | | Merge branch 'bug_7413' of https://github.com/rwldrn/jquery into rwldrn-bug_7413jeresig2010-12-091-0/+6
|\ \ \
| * | | Fixes #7413; isEmptyObject() check to see if obj passes isPlainObjectrwldrn2010-11-091-0/+6
| | | |
* | | | Improve performance of get() for negative indices. Fixes #5476.Anton M2010-11-191-1/+1
|/ / /
* | | Make sure that if an additional load event is triggered (such as an iframe ↵John Resig2010-11-091-8/+11
| | | | | | | | | | | | being dynamically injected in DOM ready) the ready event isn't triggered twice. Fixes #7352.
* | | Make sure that when multiple variables are being declared that assignments ↵John Resig2010-11-091-3/+7
| | | | | | | | | | | | are each done on their own line.
* | | Make sure that the ready event doesn't double-fire when .bind(ready) is ↵jeresig2010-10-221-2/+2
| |/ |/| | | | | used. Fixes #7247.
* | Var wasn't being explicitly declared. Fixes #7226.John Resig2010-10-171-1/+1
|/
* Make sure that opacity is being reset properly on a show animation. ↵jeresig2010-09-271-0/+7
| | | | Additionally expose jQuery.isNaN from the data module.
* Make sure that the body element exists before doing the body selector ↵jeresig2010-09-241-1/+1
| | | | optimization. Fixes #6529.
* Increase the speed of the single setTimeout calls for the ready event.jeresig2010-09-241-2/+2
|