FLUID-5759: Composite panels: Processing of 'panels' list is wrong

Metadata

Source
FLUID-5759
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Cindy Li
Reporter
Anastasia Cheetham
Created
2015-09-10T16:19:24.025-0400
Updated
2015-11-26T13:29:52.004-0500
Versions
  1. 1.9
Fixed Versions
N/A
Component
  1. Prefs Framework

Description

The way the AuxBuilder processes the "panels" property of a composite panel definition is wrong, somehow. If the strings in the array happen to be only one character long, it fails. The code is somehow parsing the panel names on a per-character basis, and converting them to 0s and 1s, and getting completely confused.

The x, y and xy panels in the minimalEditor example in this branch illustrate the problem:

https://github.com/acheetham/infusion/blob/FLUID-5754%2B/examples/framework/preferences/minimalEditor/js/minEditor.js

I'm getting a console error "TypeError: prefKey.replace is not a function" in Panels.js, line 159

Comments