Updated Branches: refs/heads/master 9dab1bb5a -> eb5e94a27
WICKET-4592 WicketAjaxDebug.logError used in Wicket.Head.addJavascript - JS error when wicket-ajax-debug.js not loaded Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/eb5e94a2 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/eb5e94a2 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/eb5e94a2 Branch: refs/heads/master Commit: eb5e94a27b24421f45292d0242dcc7a03d0a1786 Parents: 9dab1bb Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Fri Jun 15 11:22:06 2012 +0300 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Fri Jun 15 11:22:06 2012 +0300 ---------------------------------------------------------------------- .../wicket/ajax/res/js/wicket-ajax-jquery.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/eb5e94a2/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 fea9400..772049c 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 @@ -1909,7 +1909,7 @@ // also a src value. Therefore we put the url to the src_ (notice the underscore) attribute. // Wicket.Head.containsElement is aware of that and takes also the underscored attributes into account. addJavascript: function (content, id, fakeSrc) { - content = 'try{'+content+'}catch(e){Wicket.Ajax.DebugWindow.logError(e);}'; + content = 'try{'+content+'}catch(e){Wicket.Log.error(e);}'; var script = Wicket.Head.createElement("script"); if (id) { script.id = id;
