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 2014/02/17 13:28:13 UTC

git commit: Small simplification of iframe's onload listener - use jQuery.one()

Repository: wicket
Updated Branches:
  refs/heads/master abeb2af4a -> 5bc5ef21f


Small simplification of iframe's onload listener - use jQuery.one()


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

Branch: refs/heads/master
Commit: 5bc5ef21f4b630e0c9ecd9f35f3e5b31bcc0a0e3
Parents: abeb2af
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Feb 17 14:27:34 2014 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Feb 17 14:27:34 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/wicket/blob/5bc5ef21/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 f2171a1..34dd842 100644
--- a/wicket-examples/src/main/webapp/js-test/lib/gym.js
+++ b/wicket-examples/src/main/webapp/js-test/lib/gym.js
@@ -56,8 +56,7 @@
 
 		_getIframe()
 			.off('load')
-			.on('load', function() {
-				$(this).off('load');
+			.one('load', function() {
 
 				var newIframe, $$;
 
@@ -121,4 +120,4 @@
 		click: click,
 		ajaxClick: ajaxClick
 	};
-})($q);
\ No newline at end of file
+})($q);