Changeset 4251
- Timestamp:
- 12/20/07 13:36:56 (8 months ago)
- Location:
- trunk/jquery
- Files:
-
- 2 modified
-
src/core.js (modified) (1 diff)
-
test/unit/event.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/core.js
r4236 r4251 499 499 jQuery.each(elems, function(){ 500 500 var elem = clone ? 501 this.cloneNode( true ):501 jQuery( this ).clone( true )[0] : 502 502 this; 503 503 -
trunk/jquery/test/unit/event.js
r4246 r4251 2 2 3 3 test("bind()", function() { 4 expect(1 8);4 expect(19); 5 5 6 6 var handler = function(event) { … … 86 86 equals(this.nodeType, 1, "Check node,textnode,comment bind just does real nodes" ); 87 87 }).trigger("tester"); 88 89 // Make sure events stick with appendTo'd elements (which are cloned) #2027 90 $("<a href='#fail' class='test'>test</a>").click(function(){ return false; }).appendTo("p"); 91 ok( $("a.test:first").triggerHandler("click") === false, "Handler is bound to appendTo'd elements" ); 92 reset(); 88 93 }); 89 94