maqetta/maqetta — comment on commit 5f9c6e5e6586a2c76093a044f58bcd2ee3d91372
File: maqetta.core.server/WebContent/project/base/maqetta/States.js line 1112
By JonFerraiolo:

I'm not entirely sure about _preserveStates and _restoreStates, but as I remember, _preserveStates happens early in the document loading process, perhaps before Dojo tosses away any attributes that it doesn't recognize, and then _restoreStates happens much further along to reattach the states information. If my theory is correct, the states info needs to be persisted outside of the local scope of a particular function.