Ticket #2819: fixed-load.diff
| File fixed-load.diff, 1.5 kB (added by flesler, 3 months ago) |
|---|
|
Changes on ajax.js and the test that would fail w/o this change. |
-
src/ajax.js
-
test/unit/event.js
112 112 ok( $("a.test:first").triggerHandler("click") === false, "Handler is bound to appendTo'd elements" ); 113 113 }); 114 114 115 test(" click()", function() {116 expect( 5);115 test("trigger() shortcuts", function() { 116 expect(6); 117 117 $('<li><a href="#">Change location</a></li>').prependTo('#firstUL').find('a').bind('click', function() { 118 118 var close = $('spanx', this); // same with $(this).find('span'); 119 119 equals( close.length, 0, "Context element does not exist, length must be zero" ); … … 138 138 }; 139 139 $('#simon1').click(); 140 140 equals( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" ); 141 142 //try triggering load with $().load() used to fail 143 $('<img />').load(function(){ 144 ok( true, "Trigger the load event, using the shortcut .load(), used to fail."); 145 }).load(); 141 146 }); 142 147 143 148 test("unbind(event)", function() {