jquery testrunner: reset global events after each run, speeds up a test run for ajax from 16s to 10s (test/?ajax), kudos to Ariel

This commit is contained in:
Jörn Zaefferer 2008-05-05 23:29:28 +00:00
parent f8698395ac
commit d726a96b1f

View file

@ -184,6 +184,7 @@ function expect(asserts) {
*/ */
function reset() { function reset() {
$("#main").html( _config.fixture ); $("#main").html( _config.fixture );
$.event.global = {};
} }
/** /**