Bug Tracker

Changeset 4287

Show
Ignore:
Timestamp:
12/20/07 20:40:20 (9 months ago)
Author:
davidserduke
Message:

Fixed a couple problems found in the test suite. First, IE doesn't like it when text nodes were trying to duplicate their events in clone, so don't do text nodes (that shouldn't have events anyway). Also the fx module was freezing from a recent update that wasn't quite finished.

Location:
trunk/jquery
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/core.js

    r4251 r4287  
    324324        if ( events === true ) 
    325325            this.find("*").andSelf().each(function(i){ 
     326                if (this.nodeType == 3) 
     327                    return; 
    326328                var events = jQuery.data( this, "events" ); 
    327329 
  • trunk/jquery/test/unit/fx.js

    r4285 r4287  
    22 
    33test("animate(Hash, Object, Function)", function() { 
    4     expect(3); 
     4    expect(1); 
    55    stop(); 
    66    var hash = {opacity: 'show'}; 
     
    88    $('#foo').animate(hash, 0, function() { 
    99        ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the hash parameter' ); 
     10        start(); 
    1011    }); 
    1112});