Fixed a couple problems found in the test suite. First, IE doesn't like it when...
[jquery.git] / src / core.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 )