Commit graph

424 commits

Author SHA1 Message Date
jeresig 247363b9a7 Merge branch 'map-object.1.6' of https://github.com/danheberden/jquery into danheberden-map-object.1.6 2011-04-10 16:46:14 -04:00
jeresig 523db95de2 Merge branch '2773_find_closest' of https://github.com/timmywil/jquery into timmywil-2773_find_closest
Conflicts:
	test/unit/traversing.js
2011-04-10 16:37:09 -04:00
jeresig 7fb95ebe8f Merge branch 'attrhooks.1.6'
Conflicts:
	src/core.js
	src/support.js
2011-04-10 15:49:17 -04:00
Rick Waldron 8c40c00fac Fixes #8814. Clean up inArray. 2011-04-10 14:31:31 -04:00
Dave Methvin c470db6950 Merge branch 'master' of github.com:jquery/jquery 2011-04-07 11:30:26 -04:00
Dave Methvin 14193e449e Create jQuery.holdReady(true/false) method to encapsulate jQuery.readyWait++ / jQuery.ready(true) logic. Fix problem where jQuery.ready may trigger twice, causing the (unsupported) document.onready to run twice. Fixes #8803 . 2011-04-07 11:26:42 -04:00
jaubourg f3c6077da0 Rewrite of globalEval. Uses window.execScript or window.eval with a trick to ensure proper context. Unit tests added. 2011-04-07 06:47:15 +02:00
carpie e0856738e6 Skip id regex check when large html strings are passed to the jQuery constructor (#7990). 2011-04-05 23:18:35 -04:00
Dave Methvin 1e85027dee Merge branch '4321' of https://github.com/rwldrn/jquery into rwldrn-4321 2011-04-05 22:04:05 -04:00
Dan Heberden c0389e3e37 Add missing var declaration for 2011-04-05 08:33:14 -07:00
Dan Heberden 3609bed9e7 Remove extra else in parseJSON 2011-04-05 07:20:58 -07:00
Dan Heberden a7e7dbd978 Bug 7587; Enhancement/1.6 Feature: Bypass regexp filter on $.parseJSON and use native thrown exceptions if window.JSON.parse is available 2011-04-05 01:43:14 -07:00
Dan Heberden c72371f714 Improve speed of $.map with object support (-5% previous speed) and improve .length detection 2011-04-04 23:59:54 -07:00
timmywil 8cd30c62d8 Continuing IE7 testing, conditional attr fixes and hooks with feature testing. Will figure out a way to shorten after the test suite passes. 2011-04-03 19:13:39 -04:00
Dan Heberden 00dd6013b6 Clean up tab spacing 2011-03-21 12:24:53 -07:00
Dan Heberden d832f4f71e jQuery.map to iterate over objects with a .length property 2011-03-21 12:12:31 -07:00
Dan Heberden e38f074d14 jQuery.map to conform with style guidelines - improved size/DRY code 2011-03-21 08:39:53 -07:00
Dan Heberden f0e7d28e83 Merge branch 'bug_2616' of https://github.com/jboesch/jquery into map-object.1.6
* 'bug_2616' of https://github.com/jboesch/jquery:
  Bug 2616; Adding object support to jQuery.map
2011-03-21 08:04:35 -07:00
timmywil 7a69e34a5c 2773: first pass adding node/jQuery object support to jQuery.fn.find; unit tests added 2011-03-16 01:16:32 -04:00
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
Jordan Boesch c8a887af06 Bug 2616; Adding object support to jQuery.map 2011-02-27 12:47:35 -06: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