Fixed a couple problems found in the test suite. First, IE doesn't like it when...
authorDavid Serduke <davidserduke@gmail.com>
Thu, 20 Dec 2007 20:40:20 +0000 (20:40 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Thu, 20 Dec 2007 20:40:20 +0000 (20:40 +0000)
src/core.js
test/unit/fx.js

index c2f94d2..10db3ed 100644 (file)
@@ -323,6 +323,8 @@ jQuery.fn = jQuery.prototype = {
                // Copy the events from the original to the clone
                if ( events === true )
                        this.find("*").andSelf().each(function(i){
+                               if (this.nodeType == 3)
+                                       return;
                                var events = jQuery.data( this, "events" );
 
                                for ( var type in events )
index 5f6ad39..1204e26 100644 (file)
@@ -1,12 +1,13 @@
 module("fx");
 
 test("animate(Hash, Object, Function)", function() {
-       expect(3);
+       expect(1);
        stop();
        var hash = {opacity: 'show'};
        var hashCopy = $.extend({}, hash);
        $('#foo').animate(hash, 0, function() {
                ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the hash parameter' );
+               start();
        });
 });