You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Anthony Carlucci (JIRA)" <ji...@apache.org> on 2012/10/08 20:04:03 UTC
[jira] [Created] (RAVE-816) Incorrect widget initialization order
Anthony Carlucci created RAVE-816:
-------------------------------------
Summary: Incorrect widget initialization order
Key: RAVE-816
URL: https://issues.apache.org/jira/browse/RAVE-816
Project: Rave
Issue Type: Bug
Affects Versions: 0.16
Reporter: Anthony Carlucci
Assignee: Anthony Carlucci
Priority: Minor
The JavaScript algorithm for initializing widgets is supposed to render them in a left-to-right, then top-to-bottom order. This algorithm (rave.initializeWidgets) is relying on the insertion order of the regions into a JavaScript map object to control the order in which they are processed. However, this is an unreliable method as some browsers do not always preserve the insertion order of properties into a JavaScript object.
Fix: Change the widgetsByRegionIdMap map object in rave.js to be an Array of objects instead, to preserve the order in which the regions are added.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (RAVE-816) Incorrect widget initialization order
Posted by "Anthony Carlucci (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAVE-816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anthony Carlucci resolved RAVE-816.
-----------------------------------
Resolution: Fixed
Fix Version/s: 0.17
> Incorrect widget initialization order
> -------------------------------------
>
> Key: RAVE-816
> URL: https://issues.apache.org/jira/browse/RAVE-816
> Project: Rave
> Issue Type: Bug
> Affects Versions: 0.16
> Reporter: Anthony Carlucci
> Assignee: Anthony Carlucci
> Priority: Minor
> Fix For: 0.17
>
>
> The JavaScript algorithm for initializing widgets is supposed to render them in a left-to-right, then top-to-bottom order. This algorithm (rave.initializeWidgets) is relying on the insertion order of the regions into a JavaScript map object to control the order in which they are processed. However, this is an unreliable method as some browsers do not always preserve the insertion order of properties into a JavaScript object.
> Fix: Change the widgetsByRegionIdMap map object in rave.js to be an Array of objects instead, to preserve the order in which the regions are added.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira