Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Don't override run_in_init

  • Loading branch information...
commit 37c5d25ac867ef925ef95a8ae1ccb54642850df0 1 parent 1c8e595
Vesa Poikajärvi authored
11 test/browser/helpers/api.js
@@ -24,10 +24,15 @@ function createTest(name, config, use, test) {
24 24 use = undefined;
25 25 }
26 26
27   - if (HTML5TEST && use === undefined) {
28   - use = {};
  27 + if (HTML5TEST) {
  28 + if (use === undefined) {
  29 + use = {};
  30 + }
  31 +
  32 + if (use.run_handler_in_init === undefined) {
  33 + use.run_handler_in_init = false;
  34 + }
29 35 use.html5history = true;
30   - use.run_handler_in_init = false;
31 36 }
32 37
33 38 // Because of the use of setTimeout when defining onpopstate
2  test/browser/routes-harness.html
@@ -20,7 +20,7 @@ <h2 id="qunit-userAgent"></h2>
20 20 </script>
21 21 <script type="text/javascript" src="helpers/jquery.js"></script>
22 22 <script type="text/javascript" src="helpers/qunit.js"></script>
23   -<script type="text/javascript" src="../../build/director-1.0.9-1.js"></script>
  23 +<script type="text/javascript" src="../../build/director-1.0.10.js"></script>
24 24 <script type="text/javascript" src="helpers/api.js"></script>
25 25 <script type="text/javascript" src="routes-test.js"></script>
26 26 </body>

0 comments on commit 37c5d25

Please sign in to comment.
Something went wrong with that request. Please try again.