You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/06/18 10:09:35 UTC

[11/21] git commit: Return just Promise instead of the whole Deferred, so the clients (the tests) cannot fulfill them but just add callbacks

Return just Promise instead of the whole Deferred, so the clients (the tests) cannot fulfill them but just add callbacks


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

Branch: refs/heads/master
Commit: d4e906001b8840c27affa9a954809d53882d7da1
Parents: 82c922c
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue Jun 18 07:34:29 2013 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Tue Jun 18 07:34:29 2013 +0200

----------------------------------------------------------------------
 wicket-examples/src/main/webapp/js-test/lib/gym.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/d4e90600/wicket-examples/src/main/webapp/js-test/lib/gym.js
----------------------------------------------------------------------
diff --git a/wicket-examples/src/main/webapp/js-test/lib/gym.js b/wicket-examples/src/main/webapp/js-test/lib/gym.js
index 9833f44..ff0a14d 100644
--- a/wicket-examples/src/main/webapp/js-test/lib/gym.js
+++ b/wicket-examples/src/main/webapp/js-test/lib/gym.js
@@ -26,7 +26,7 @@
 	    });
 	    _getIframe().attr('src', url);
 
-	    return deferred;
+	    return deferred.promise();
 	}
 
 	var click = function($btn) {
@@ -42,7 +42,7 @@
 			$btn.click();
 		}
 
-	    return deferred;
+	    return deferred.promise();
 	}
 
 	// private
@@ -88,7 +88,7 @@
 
 		$btn.click();
 
-		return deferred;
+		return deferred.promise();
 	}
 
 	// private