Skip to content

Commit

Permalink
jquery testrunner: reset global events after each run, speeds up a te…
Browse files Browse the repository at this point in the history
…st run for ajax from 16s to 10s (test/?ajax), kudos to Ariel
  • Loading branch information
jzaefferer committed May 5, 2008
1 parent f869839 commit d726a96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/data/testrunner.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ function expect(asserts) {
*/ */
function reset() { function reset() {
$("#main").html( _config.fixture ); $("#main").html( _config.fixture );
$.event.global = {};
} }


/** /**
Expand Down

0 comments on commit d726a96

Please sign in to comment.