Permalink
Commits on Mar 3, 2011
  1. Merge branch 'master' of github.com:jquery/jquery into deferred.1.6

    Conflicts:
    	src/core.js
    	test/unit/core.js
    jaubourg committed Mar 3, 2011
Commits on Mar 2, 2011
  1. Makes sure deferreds attached to the animation queue are no resolved …

    …before the animation callback is fired.
    jaubourg committed Mar 2, 2011
  2. Deports fn.promise into queue.js. Simplifies and optimizes greatly ho…

    …w and when the deferreds are constructed. Doesn't crash in Firefox anymore. Unit tests pending. Also removes attachPromise, adds the isObservable helper and refactors jQuery.when.
    jaubourg committed Mar 2, 2011
  3. Removes attachPromise and make the fix for #4825 a lot cleaner. No mo…

    …re deferred attached to elements by load for now.
    jaubourg committed Mar 2, 2011
Commits on Feb 27, 2011
  1. Renames addPromise as attachPromise. Removes remains of older code an…

    …d _removePromise. Always create a deferred if not is provided to attachPromise which simplifies code tremendously. Hook in animate and load modified. Unit Tests updated.
    jaubourg committed Feb 27, 2011
  2. Added jQuery.fn.promise with companion jQuery.fn.addPromise and priva…

    …te jQuery._removePromise. Used inside jQuery.animate and jQuery.load. Unit tests added. Some minor refactoring in deferred.js.
    jaubourg committed Feb 27, 2011
Commits on Feb 24, 2011
  1. Grouped up the test

    gnarf committed Feb 24, 2011
  2. A quick change to detect AIR urls

    gnarf committed Feb 24, 2011
  3. Removes jQuery.whenAny, jQuery.whenNone, promise.and and promise.or. …

    …Also, adds deferred.js to test/csp.php.
    jaubourg committed Feb 24, 2011
  4. jQuery 1.6 Deferred Enhancements Proposal

    - Deferred code refactored and deported into its own file (src/deferred.js):
    
      + New helpers:
    
        * jQuery.whenAny( p1, p2, ... ):
          is resolved if at least one of the given arguments is resolved,
          rejected otherwise
    
        * jQuery.whenNone( p1, p2, ... ):
          is resolved if none of the arguments are, rejected otherwise
    
      + New promise methods:
    
        * promise.always( fn1, fn2, ... ):
          callbacks are executed whether the deferred is resolved or rejected
    
        * promise.and( p1, p2, ... ):
          equivalent to jQuery.when( promise, p1, p2, ... )
    
        * promise.or( p1, p2, ... ):
          equivalent to jQuery.whenAny( promise, p1, p2, ... )
    
        * promise.chain( fn ):
          filters the resolve value and returns a new promise.
          For instance:
    
              var defer = jQuery.Deferred(),
                  filtered = defer.chain(function( a, b ) {
                      return a * b;
                  });
    
              filtered.done(function( res ) {
                  console.log( res );
              });
    
              defer.resolve( 2, 3 );
    
          will output "6" in the console.
    
          Can also be used to chain deferreds:
    
              jQuery.ajax( "service1" ).chain(function( response ) {
                  // The first request succeeded
                  return jQuery.ajax( "service2", {
                      data: response
                  });
              }).done(function() {
                  // The second request succeeded
              });
    
        * promise.invert():
          returns a new promise that is rejected when the original one is
          resolved and vice versa
    
    - deferred unit tests are now in test/unit/deferred.js
      (234 test total)
    
    - in src/core.js:
    
      + moved code around so that the ready deferred is created only when
        needed (allows deferred code to be out of core.js)
    
      + jQuery.readyPromise() added to have access to the ready promise
        Ex: jQuery.readyPromise().then(...)
    jaubourg committed Feb 24, 2011
Commits on Feb 23, 2011
  1. Revert "Fixes #8353. Adds a catch block in resolveWith so that the fi…

    …nally block gets executed in IE7 and IE6."
    
    This reverts commit cacea6f.
    jaubourg committed Feb 23, 2011
  2. Tagging the 1.5.1 release.

    jeresig committed Feb 23, 2011
  3. Make a new jQuery.support.noCloneChecked - splitting apart the previo…

    …us feature detect relating to clone in IE, fixes the last remaining issue with IE 9 RC. Fixes #8365.
    jeresig committed Feb 23, 2011
  4. Refactors jQuery.when to avoid unnecessary recursion and limit functi…

    …on calls as much as possible.
    jaubourg committed Feb 23, 2011
  5. Fixes #8353. Adds a catch block in resolveWith so that the finally bl…

    …ock gets executed in IE7 and IE6.
    jaubourg committed Feb 23, 2011
Commits on Feb 21, 2011
  1. Makes the promise method of Deferreds a bit more readable by not usin…

    …g the variable declared as parameter trick anymore.
    jaubourg committed Feb 21, 2011
Commits on Feb 18, 2011
  1. Tagging the 1.5.1rc1 release.

    jeresig committed Feb 18, 2011
  2. Revert "Adds an invert method to promises that returns a "inverted" p…

    …romise that is resolved when the underlying deferred is rejected and rejected when the underlying deferred is resolved."
    
    This reverts commit 4e97543.
    jaubourg committed Feb 18, 2011
  3. A temporary workaround for #8018 that avoids any chance of compatibil…

    …ity-breaking changes until a proper fix can be landed in 1.6.
    SlexAxton committed with csnover Feb 18, 2011
Commits on Feb 17, 2011
  1. Fix a some inaccuracies in the original test case for #7912.

    - Use fresh div instead of one outside the test-fixture
    - make sure the empty string test tests actually that (not 0% 0%)
    - actually test for < -10000 (#7193)
    - fixed some whitespace issues
    jitter committed Feb 17, 2011
  2. Fixes #7912. Make sure .cur() only returns 0 as fallback value when i…

    …t needs to ("", auto, undefined, null).
    
    This change makes .cur() more .cssHooks friendly. .cur() now returns the unmodified value by
    .css() if it isn't a number, number-alike or a value that needs a fallback to 0.
    This way fx.start doesn't need to be recalculated for complex values.
    louisremi committed with jitter Feb 17, 2011
  3. Only perpetrate the .toJSON hack on data caches when they are attache…

    …d to a plain Javascript object. Part of the continuing saga of #8108.
    dmethvin committed with jitter Feb 16, 2011
  4. Fixes #8297. Makes sure response headers with empty values are handle…

    …d properly and do not prevent proper parsing of the entire response headers string. Unit test amended.
    jaubourg committed Feb 17, 2011
Commits on Feb 15, 2011
  1. Revert "Merge branch '8099' of https://github.com/rwldrn/jquery into …

    …rwldrn-8099"
    
    This reverts commit bb94085, reversing
    changes made to 3ad8dd2.
    
    Conflicts:
    
    	src/effects.js
    jitter committed Feb 15, 2011
  2. Fix some whitespace issues.

    jitter committed Feb 15, 2011
  3. Fixes #7922. Copy the donor event when simulating a bubbling submit i…

    …n IE so that we don't accidentally stop propagation on it. Remove a bunch of return statements that could also cancel the event. DRY out the liveFired change from #6359 by moving it to the trigger() function.
    dmethvin committed with jitter Feb 10, 2011
  4. Fixes #8277. Sets data to undefined rather than null when it is not p…

    …rovided in ajax helpers so that it won't revent data set in ajaxSettings from being used. Unit test added.
    jaubourg committed Feb 15, 2011
Commits on Feb 14, 2011
  1. Update jQuery.data to use jQuery.noop for toJSON hack instead of an a…

    …dditional superfluous function.
    csnover committed Feb 14, 2011