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

Unify all watch methods. #68

Closed sjohnsonaz closed 9 years ago

sjohnsonaz commented 10 years ago

Ensure that all watch methods have similar parameters and functionality. They should be similar to Module.watchValue(property, value, get, set). They should set a default value if possible, and potentially provide overrides to Object.defineProperty.

Known methods are:

sjohnsonaz commented 10 years ago

Added enumerable : true and unified configurable : true in all watch methods.

sjohnsonaz commented 9 years ago

All watch methods now accept a value parameter for initialization. Aside from Module.watchValue, If the value == undefined it does not initialize. Also a definition parameter has been added. This will overwrite any values passed to Object.defineProperty.

sjohnsonaz commented 9 years ago

Added Module.watchValueFunction method to be a base for all other watch methods. Updated all watch methods.