You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Stanton Sievers (JIRA)" <ji...@apache.org> on 2013/11/12 19:34:18 UTC

[jira] [Updated] (RAVE-1078) Home view binds click events multiple times

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

Stanton Sievers updated RAVE-1078:
----------------------------------

    Description: 
The HomeView that gets registered in rave_ui.js will bind click events every time the view's render() method is called.  This causes problems, for instance when the widget is maximized and then minimized, because the elements to which the events were bound are never removed nor are the events ever unbound.  

Thus, in the case of maximizing and then minimizing a widget (i.e. navigating to the "canvas" view and then back to the "home" view) the events are bound multiple times.

You can see this behavior if you set a breakpoint in the "maximize()" method defined in HomeView.prototype.render in rave_ui.js.  If you repeat the process of maximizing and minimizing the widget, the "maximize()" method will get called more than once.

  was:
The HomeView that gets registered in rave_ui.js will bind click events every time the view's render() method is called.  This causes problem, for instance when the widget is maximized and then minimized, because the elements to which the events were bound are never removed nor are the events ever unbound.  

Thus, in the case of maximizing and then minimizing a widget (i.e. navigating to the "canvas" view and then back to the "home" view) the events are bound multiple times.

You can see this behavior if you set a breakpoint in the "maximize()" method defined in HomeView.prototype.render in rave_ui.js.  If you repeat the process of maximizing and minimizing the widget, the "maximize()" method will get called more than once.


> Home view binds click events multiple times
> -------------------------------------------
>
>                 Key: RAVE-1078
>                 URL: https://issues.apache.org/jira/browse/RAVE-1078
>             Project: Rave
>          Issue Type: Bug
>          Components: rave-portal
>    Affects Versions: 0.23
>         Environment: Mac OS X 10.8.3
> Chrome 30
>            Reporter: Stanton Sievers
>
> The HomeView that gets registered in rave_ui.js will bind click events every time the view's render() method is called.  This causes problems, for instance when the widget is maximized and then minimized, because the elements to which the events were bound are never removed nor are the events ever unbound.  
> Thus, in the case of maximizing and then minimizing a widget (i.e. navigating to the "canvas" view and then back to the "home" view) the events are bound multiple times.
> You can see this behavior if you set a breakpoint in the "maximize()" method defined in HomeView.prototype.render in rave_ui.js.  If you repeat the process of maximizing and minimizing the widget, the "maximize()" method will get called more than once.



--
This message was sent by Atlassian JIRA
(v6.1#6144)