maqetta/maqetta — Issue #1846: States changes don't work in split view
Author: JonFerraiolo
Created: 2012-03-04 15:04:09+00:00
State: open
Labels: Priority High, Source Editors, States

@jhpedemonte @waynevicknair

This bug was in Preview 4 also, so targeting M6 for this issue.

* Open Sample1.html
* Go into split view
* Click on different states

Result=> Nothing happens - state change doesn't happen. Even if you go back to design view, you still can't change states without closing the editor and reopening it.

Somehow or other bringing the act of bringing up the source editor wipes out the "states" property on the widget object corresponding to the BODY. (I figured this out by putting a breakpoint in davinci/maqetta/States.js:setState()) Just a theory, but maybe upon bringing up the source editor, we are doing a short-circuit document reparse, and that document reparse isn't doing the _preserveStates/_restoreStates logic we do on initial page load.