You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/06/15 10:22:42 UTC

[jira] [Resolved] (WICKET-4592) WicketAjaxDebug.logError used in Wicket.Head.addJavascript - JS error when wicket-ajax-debug.js not loaded

     [ https://issues.apache.org/jira/browse/WICKET-4592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4592.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.8
                   6.0.0-RC1
         Assignee: Martin Grigorov

Thank you, Thomas!
                
> WicketAjaxDebug.logError used in Wicket.Head.addJavascript - JS error when wicket-ajax-debug.js not loaded
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4592
>                 URL: https://issues.apache.org/jira/browse/WICKET-4592
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.5.7
>            Reporter: Tom Kmec
>            Assignee: Martin Grigorov
>             Fix For: 6.0.0-RC1, 1.5.8
>
>
> Wicket.Head.addJavascript (defined in wicket-ajax.js) encapsulates javascript in this code:
> content = 'try{'+content+'}catch(e){WicketAjaxDebug.logError(e);}'; 
> However, WicketAjaxDebug can be undefined as it's declared in wicket-ajax-debug.js which might not be included. As a consequence, catch block will fail and obfuscate any error catched.
> I believe this catch block should call Wicket.Log.error(e) instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira