Commit 4b9bed95 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Added test for #935

parent 4903872c
...@@ -94,3 +94,14 @@ test("events don't work with iframes, see #939", function() { ...@@ -94,3 +94,14 @@ test("events don't work with iframes, see #939", function() {
ok( true, "Event handling via jQuery's handler" ); ok( true, "Event handling via jQuery's handler" );
}).click(); }).click();
}); });
test("Event.data is a global event object", function() {
expect(3);
var counter = 0;
function selectOnChange(event) {
equals( event.data, counter++ );
}
$("select").each(function(i){
$(this).bind('change', i, selectOnChange);
}).trigger('change');
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment