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 2012/07/23 10:44:38 UTC

[3/3] git commit: Make use of the passed arguments to the precondition handlers in the default precondition.

Make use of the passed arguments to the precondition handlers in the default precondition.


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

Branch: refs/heads/master
Commit: fcd3b9334ae5e94c8ac1f51092bcbf973a7f8eb2
Parents: 9de425e
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Jul 23 11:38:23 2012 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Jul 23 11:38:23 2012 +0300

----------------------------------------------------------------------
 .../wicket/ajax/res/js/wicket-ajax-jquery.js       |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/fcd3b933/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index 3ea6e53..d166d47 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -442,12 +442,12 @@
 				self = this,
 
 				// the precondition to use if there are no explicit ones
-				defaultPrecondition = [ function () {
-					if (attrs.c) {
-						if (attrs.f) {
-							return Wicket.$$(attrs.c) && Wicket.$$(attrs.f);
+				defaultPrecondition = [ function (attributes, jqXHR, jqSettings) {
+					if (attributes.c) {
+						if (attributes.f) {
+							return Wicket.$$(attributes.c) && Wicket.$$(attributes.f);
 						} else {
-							return Wicket.$$(attrs.c);
+							return Wicket.$$(attributes.c);
 						}
 					}
 				}];