Updated Branches: refs/heads/wicket-1.5.x 907634246 -> 2a6a2888e
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/2a6a2888 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/2a6a2888 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/2a6a2888 Branch: refs/heads/wicket-1.5.x Commit: 2a6a2888e701af143b97edbceed6c9068f58aead Parents: 9076342 Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Fri Jun 15 11:20:02 2012 +0300 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Fri Jun 15 11:20:02 2012 +0300 ---------------------------------------------------------------------- .../java/org/apache/wicket/ajax/wicket-ajax.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/2a6a2888/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js b/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js index 06eeba5..0bfa3fc 100644 --- a/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js +++ b/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js @@ -1833,7 +1833,7 @@ Wicket.Head.containsElement = function(element, mandatoryAttribute) { // 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. Wicket.Head.addJavascript = function(content, id, fakeSrc) { - content = 'try{'+content+'}catch(e){WicketAjaxDebug.logError(e);}'; + content = 'try{'+content+'}catch(e){Wicket.Log.error(e);}'; var script = Wicket.Head.createElement("script"); if (id) { script.id = id;
