]> source.dussan.org Git - jquery.git/commitdiff
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 c2f94d2b77f5fc54dfaae20e06c88e5ee7cf7b07..10db3edafc674327750eb9bc7c1678577af80562 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 5f6ad3993ef85d89493c65207b591771376c5852..1204e261cfe432d60839d4e5d8acbaf602384f7f 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();
        });
 });