sjohnsonaz / BuildJS-Full

A simple utility for class definition, inheritance, dynamic loading, MVVM, Widgets, and backend MVC.
http://buildjs.com
0 stars 0 forks source link

Prevent Widget id pollution from IfBinding and ForEachBinding. #69

Closed sjohnsonaz closed 9 years ago

sjohnsonaz commented 9 years ago

We may simply want to turn off automatic ID generation. In general there is no use for automatic ID's. These really cannot be guaranteed to be unique between application instances. Furthermore, they are really only useful for CSS, in which case direct naming is more useful.

Also, direct children of the IfBinding and ForEachBinding can be controlled. For example, ForEachBinding does not need ID's on the children. However, we may still have problem if these systems use templates, which may create descendant Widgets.

sjohnsonaz commented 9 years ago

ID's are no longer generated automatically. Added Build.debug state for turning on automatic ID generation.