aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'proxy-native-bind' of https://github.com/gf3/jquery into ↵jeresig2011-04-101-19/+40
|\ | | | | | | gf3-proxy-native-bind
| * added: Backcompatibility with old proxy syntax.Gianni Chiappetta2011-01-211-0/+6
| |
| * Merge branch 'master' into proxy-native-bindGianni Chiappetta2011-01-211-79/+266
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (194 commits) Revert "Make sure that focusin/focusout bubbles in non-IE browsers." This was causing problems with the focusin event, see: #7340. Replaces "text in-between" technique with a full-fledged one-level transitive search for converters (unit tests added). Also cleans up auto dataType determination and adds converter checks in order to guess the best dataType possible. Moves determineResponse logic into main ajax callback. Puts responseXXX fields definitions into ajaxSettings. Removes misleading comment. 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. Renames Deferred's fire and fireReject methods as resolveWith and rejectWith respectively. Fix typo in regex tweak from previous commit. Renames determineDataType as determineResponse. Makes it more generic as a first step into integrating the logic into the main ajax done callback. Also fixes some comments in ajax/xhr.js. 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). Revises the way arguments are handled in ajax. Makes sure statusCode callbacks are ordered in the same way success and error callbacks are. Unit tests added. Cleans up and simplifies code shared by ajaxPrefilter and ajaxTransport. Removes chainability of ajaxSetup, ajaxPrefilter and ajaxTransport. Also makes sure context is handled properly by ajaxSetup (unit test added). Rework unit tests to check actual result elements. Moves active counter test after all other ajax tests where it should be. Revised the Nokia support fallback. It turns out that Nokia supports the documentElement property but does not define document.compatMode. Adding this third fallback allows Nokia to run jQuery error-free and return proper values for window width and height. Moves things around to make jsLint happier. Fixes crossDomain test so that it assumes port to be 80 for http and 443 for https when it is not provided. Moves determineDataType into ajaxSettings so that it is accessible to transports without the need for a second argument and so that we can now pass the original options to the transport instead. Also ensures the original options are actually propagated to prefilters (they were not). Re-adds hastily removed variable and simplifies statusCode based callbacks handling. Use undefined instead of 0 to deference transport for clarity. ... Conflicts: src/event.js
| * | Perf. improvement based on fearphage's suggestion (direct vs call vs apply).Gianni Chiappetta2010-12-181-1/+5
| | |
| * | Add a quick test to $.support for native bind.Gianni Chiappetta2010-12-151-1/+1
| | | | | | | | | | | | As per the suggestion by ajpiano: https://github.com/gf3/jquery/commit/9f8cd6c499844451468257140e71f611abb3a040#commitcomment-218658
| * | Fixing $.proxy to work like (and use) Function.prototype.bind (ticket #7783)Gianni Chiappetta2010-12-141-19/+30
| | | | | | | | | | | | http://bugs.jquery.com/ticket/7783
* | | Merge branch 'map-object.1.6' of https://github.com/danheberden/jquery into ↵jeresig2011-04-101-6/+21
|\ \ \ | | | | | | | | | | | | danheberden-map-object.1.6
| * | | Add missing var declaration forDan Heberden2011-04-051-1/+1
| | | |
| * | | Improve speed of $.map with object support (-5% previous speed) and improve ↵Dan Heberden2011-04-041-8/+7
| | | | | | | | | | | | | | | | .length detection
| * | | Clean up tab spacingDan Heberden2011-03-211-4/+4
| | | |
| * | | jQuery.map to iterate over objects with a .length propertyDan Heberden2011-03-211-20/+20
| | | |
| * | | jQuery.map to conform with style guidelines - improved size/DRY codeDan Heberden2011-03-211-15/+17
| | | |
| * | | Merge branch 'bug_2616' of https://github.com/jboesch/jquery into map-object.1.6Dan Heberden2011-03-211-8/+22
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * 'bug_2616' of https://github.com/jboesch/jquery: Bug 2616; Adding object support to jQuery.map
| | * | | Bug 2616; Adding object support to jQuery.mapJordan Boesch2011-02-271-8/+22
| | | | |
* | | | | Merge branch '2773_find_closest' of https://github.com/timmywil/jquery into ↵jeresig2011-04-101-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | timmywil-2773_find_closest Conflicts: test/unit/traversing.js
| * | | | | 2773: first pass adding node/jQuery object support to jQuery.fn.find; unit ↵timmywil2011-03-161-1/+1
| |/ / / / | | | | | | | | | | | | | | | tests added
* | | | | Merge branch 'attrhooks.1.6'jeresig2011-04-101-1/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/core.js src/support.js
| * | | | | Continuing IE7 testing, conditional attr fixes and hooks with feature ↵timmywil2011-04-031-1/+1
| |/ / / / | | | | | | | | | | | | | | | testing. Will figure out a way to shorten after the test suite passes.
* | | | | Fixes #8814. Clean up inArray.Rick Waldron2011-04-101-8/+4
| | | | |
* | | | | Merge branch 'master' of github.com:jquery/jqueryDave Methvin2011-04-071-17/+10
|\ \ \ \ \
| * | | | | Rewrite of globalEval. Uses window.execScript or window.eval with a trick to ↵jaubourg2011-04-071-17/+10
| | | | | | | | | | | | | | | | | | | | | | | | ensure proper context. Unit tests added.
* | | | | | Create jQuery.holdReady(true/false) method to encapsulate jQuery.readyWait++ ↵Dave Methvin2011-04-071-7/+11
|/ / / / / | | | | | | | | | | | | | | | / jQuery.ready(true) logic. Fix problem where jQuery.ready may trigger twice, causing the (unsupported) document.onready to run twice. Fixes #8803 .
* | | | | Skip id regex check when large html strings are passed to the jQuery ↵carpie2011-04-051-1/+6
| | | | | | | | | | | | | | | | | | | | constructor (#7990).
* | | | | Merge branch '4321' of https://github.com/rwldrn/jquery into rwldrn-4321Dave Methvin2011-04-051-1/+1
|\ \ \ \ \
| * | | | | 4321 jQuery('#') returns empty jquery objectrwldrn2011-01-011-1/+0
| | | | | |
| * | | | | 4321 returns empty jquery objectrwldrn2011-01-011-1/+2
| | | | | |
* | | | | | Remove extra else in parseJSONDan Heberden2011-04-051-2/+1
| | | | | |
* | | | | | Bug 7587; Enhancement/1.6 Feature: Bypass regexp filter on $.parseJSON and ↵Dan Heberden2011-04-051-8/+10
| |/ / / / |/| | | | | | | | | | | | | | use native thrown exceptions if window.JSON.parse is available
* | | | | Moves Deferred-related code into a separate module. Context handling has ↵jaubourg2011-03-031-172/+2
| | | | | | | | | | | | | | | | | | | | been simplified in _Deferred.resolve and jQuery.when has been refactored for clarity (and minor optimization).
* | | | | Fix for #8421. Makes sure resolveWith can be called with only one parameter.jaubourg2011-03-031-0/+2
| |/ / / |/| | |
* | | | Revert "Fixes #8353. Adds a catch block in resolveWith so that the finally ↵jaubourg2011-02-241-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | block gets executed in IE7 and IE6." This reverts commit cacea6f7e778d42cda56066a6b1da8fb163410cc.
* | | | Refactors jQuery.when to avoid unnecessary recursion and limit function ↵jaubourg2011-02-231-18/+28
| | | | | | | | | | | | | | | | calls as much as possible.
* | | | Fixes #8353. Adds a catch block in resolveWith so that the finally block ↵jaubourg2011-02-231-0/+6
| | | | | | | | | | | | | | | | gets executed in IE7 and IE6.
* | | | Makes the promise method of Deferreds a bit more readable by not using the ↵jaubourg2011-02-221-2/+2
| | | | | | | | | | | | | | | | variable declared as parameter trick anymore.
* | | | Revert "Adds an invert method to promises that returns a "inverted" promise ↵jaubourg2011-02-181-34/+8
| | | | | | | | | | | | | | | | | | | | | | | | that is resolved when the underlying deferred is rejected and rejected when the underlying deferred is resolved." This reverts commit 4e975430510f443ef76a90d077bc8956fb8b8cc0.
* | | | Fix some whitespace issues.Anton M2011-02-151-1/+1
| | | |
* | | | Merge branch 'fix8033' of https://github.com/SlexAxton/jquery into ↵jeresig2011-02-141-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | SlexAxton-fix8033
| * | | | Moved jQuery global leak to end of file so accidental gEBCN overrides in ↵Alex Sexton2011-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | prototype don't get caught up in confusion. Fixed tests to reference jQuery variable instead of $ (best practice). Fixes #8033
* | | | | Fixes #8098. Use the fast document.head when available. Don't set unneeded ↵Mathias Bynens2011-02-021-4/+2
| | | | | | | | | | | | | | | | | | | | "script.type = text/javascript".
* | | | | Adds an invert method to promises that returns a "inverted" promise that is ↵jaubourg2011-01-311-8/+34
| | | | | | | | | | | | | | | | | | | | resolved when the underlying deferred is rejected and rejected when the underlying deferred is resolved.
* | | | | Rename jQuery.subclass() to jQuery.sub().jeresig2011-01-311-1/+1
| | | | |
* | | | | Make sure subclass is a proper subclass not just subclassing the fn methods. ↵Digitalxero2011-01-271-1/+3
| | | | | | | | | | | | | | | | | | | | Fixes #7979.
* | | | | 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.