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

[ADM] Implemented getPropertyType() for ADMNode. #134

Closed xuqingkuang closed 12 years ago

xuqingkuang commented 12 years ago

The function use for get the type of requested property.

/* Updated with john's comments. */

zhizhangchen commented 12 years ago

I think Geoff meant that we can use BWidget function to do the job, for the case you stated above, we can: BWidget.getPropertyType(admNode.getType(), p) != 'event'

As far as I'm concerned, I prefer the principal that if a function is called only once, them we'd better not introduce it. So if ADMNode.getPropertyType is only called once, we can remove it, otherwise, when can retain this function.

xuqingkuang commented 12 years ago

OK, close it.