Uploaded image for project: 'Rave'
  1. Rave
  2. RAVE-1078

Home view binds click events multiple times

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.23
    • 0.23
    • rave-portal
    • None
    • Mac OS X 10.8.3
      Chrome 30

    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.

      Attachments

        1. Rave-1078.patch
          3 kB
          Stanton Sievers

        Activity

          People

            Unassigned Unassigned
            ssievers Stanton Sievers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: