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/01/02 14:17:46 UTC
[2/2] git commit: Fix some JSHint issues.
Fix some JSHint issues.
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/2be01b7c
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/2be01b7c
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/2be01b7c
Branch: refs/heads/master
Commit: 2be01b7c12e33f2a02f306c9514f1fd281d61001
Parents: 43adcf3
Author: martin-g <mg...@apache.org>
Authored: Mon Jan 2 15:14:31 2012 +0200
Committer: martin-g <mg...@apache.org>
Committed: Mon Jan 2 15:14:31 2012 +0200
----------------------------------------------------------------------
.../wicket/ajax/res/js/wicket-ajax-jquery.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/2be01b7c/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 9a8763d..4a1ec0c 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
@@ -774,7 +774,7 @@
// On ajax request failure
failure: function (message, attrs) {
- if (message !== null) {
+ if (message) {
Wicket.Log.error("Wicket.Ajax.Call.failure: Error while parsing response: " + message);
}
this._executeHandlers(attrs.fh);
@@ -1582,12 +1582,12 @@
// downloads just the first several bytes and realizes that the MIME is wrong and ignores the rest
var img = document.createElement('img');
var notifyCalled = false;
- img.onerror = function() {
+ img.onerror = function () {
if (!notifyCalled) {
notifyCalled = true;
notify();
}
- }
+ };
img.src = css.href;
if (img.complete) {
if (!notifyCalled) {
@@ -1791,20 +1791,20 @@
*/
// WICKET-3596, WICKET-4312
_stripJSessionId: function (url) {
- if (url == null)
+ if (url === null)
{
return null;
}
// http://.../abc;jsessionid=...?param=...
var ixSemiColon = url.indexOf(";");
- if (ixSemiColon == -1)
+ if (ixSemiColon === -1)
{
return url;
}
var ixQuestionMark = url.indexOf("?");
- if (ixQuestionMark == -1)
+ if (ixQuestionMark === -1)
{
// no query paramaters; cut off at ";"
// http://.../abc;jsession=...
@@ -2254,7 +2254,7 @@
var self = this;
if (false === jQuery.event.special.inputchange.keyDownPressed) {
- setTimeout(function() {
+ window.setTimeout(function() {
jQuery.event.special.inputchange.handler.apply(self, arguments)
}, 10);
}