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 2014/08/29 09:54:53 UTC

[jira] [Reopened] (WICKET-5682) AbstractAjaxTimerBehavior fails to trigger

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

Martin Grigorov reopened WICKET-5682:
-------------------------------------


> AbstractAjaxTimerBehavior fails to trigger
> ------------------------------------------
>
>                 Key: WICKET-5682
>                 URL: https://issues.apache.org/jira/browse/WICKET-5682
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.16.0
>         Environment: Chrome 36
>            Reporter: Emond Papegaaij
>            Assignee: Emond Papegaaij
>             Fix For: 7.0.0-M3, 6.17.0
>
>
> AbstractAjaxTimerBehavior fails to trigger in some circumstances. Wicket.Event.add is called to trigger Wicket.Timer.set on the load event. The code in Wicket.Event.add adds a domready listener, which registers the onload listener as soon as the dom is ready. However, the browser fires onload before it fires domready, therefore the registered listener is never triggered and Wicket.Timer.set is not called.
> I'm not sure if this behavior is specific to recent versions of Google Chrome, but it happens quite consistently (but not always). I think a special case for onload is needed:
> $(window).load(function() {
>     $(document).ready(function() { ... });
> });



--
This message was sent by Atlassian JIRA
(v6.2#6252)