Move start() to the last promise

Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/8c1cac5c
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/8c1cac5c
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/8c1cac5c

Branch: refs/heads/master
Commit: 8c1cac5c73356bd3838096fd8d6c3020c356c04b
Parents: e1e7a7e
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Tue Jun 18 09:59:35 2013 +0200
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Tue Jun 18 09:59:35 2013 +0200

----------------------------------------------------------------------
 wicket-examples/src/main/webapp/js-test/tests/cdi/injection.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/8c1cac5c/wicket-examples/src/main/webapp/js-test/tests/cdi/injection.js
----------------------------------------------------------------------
diff --git a/wicket-examples/src/main/webapp/js-test/tests/cdi/injection.js 
b/wicket-examples/src/main/webapp/js-test/tests/cdi/injection.js
index fc0f611..1a6fbb6 100644
--- a/wicket-examples/src/main/webapp/js-test/tests/cdi/injection.js
+++ b/wicket-examples/src/main/webapp/js-test/tests/cdi/injection.js
@@ -50,8 +50,6 @@ $q(document).ready(function() {
                        var expectedValue = initialValue + 2;
                        equal(counterLabelValue, "" + expectedValue, 'The new 
value of the counter is +2');
 
-                       start();
-               });
+               }).always(start);
        });
-
 });
\ No newline at end of file

Reply via email to