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/02/06 16:07:40 UTC

[4/8] git commit: Fix jshint problems in head.js

Fix jshint problems in head.js


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

Branch: refs/heads/master
Commit: 8b23124d45d965e4e1b480dd0facd51c8a188ec1
Parents: 512f867
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Feb 6 16:05:15 2013 +0100
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Feb 6 16:07:29 2013 +0100

----------------------------------------------------------------------
 wicket-core/src/test/js/head.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/8b23124d/wicket-core/src/test/js/head.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/js/head.js b/wicket-core/src/test/js/head.js
index 228df6a..7a2a711 100644
--- a/wicket-core/src/test/js/head.js
+++ b/wicket-core/src/test/js/head.js
@@ -15,7 +15,11 @@
  * limitations under the License.
  */
 
+/*global ok: true, start: true, test: true, equal: true, deepEqual: true,
+ QUnit: true, module: true, expect: true */
+
 jQuery(document).ready(function() {
+	"use strict";
 
 	module("addElement");
 
@@ -98,7 +102,7 @@ jQuery(document).ready(function() {
 		// add <script src_="..."/>
 		Wicket.Head.addElement(script);
 
-		script.src = script['src_'];
+		script.src = script.src_;
 		// check for existence by 'src' attribute
 		ok(Wicket.Head.containsElement(script, 'src'), 'There should be an element for wicket-ajax-debug.js');
 	});