intel / rib

Rapid Interface Builder (RIB) is a browser-based design tool for quickly prototyping and creating the user interface for web applications. Layout your UI by dropping widgets onto a canvas. Run the UI in an interactive "Preview mode". Export the generated HTML and Javascript. It's that simple!
https://01.org/rib
Apache License 2.0
148 stars 74 forks source link

[General] Create new one for no project case when tab changing #252

Closed DonnaWuDongxia closed 12 years ago

DonnaWuDongxia commented 12 years ago

Hi, Geoff: I checked this, layout view get designRoot from ADM, and ADM create a new design, if there is no ADM._design is null or not defined. But when initializing pmUtils, a project will be created(including a new design), and the old design which is created for no design case will be replaced. So, actually, layout view doesn't do extra-work.

DonnaWuDongxia commented 12 years ago

So, this patch is OK, I think. You can still test it.

DonnaWuDongxia commented 12 years ago

ADM tries to guarantee there is always a design, pageUtils tries to guarantee there always has a page, this delete handler and pmUtils tries to guarantee there always has a project.

grgustaf commented 12 years ago

Merged.