Closed xuqingkuang closed 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.
OK, close it.
The function use for get the type of requested property.
/* Updated with john's comments. */