Closed sjohnsonaz closed 9 years ago
Added enumerable : true
and unified configurable : true
in all watch
methods.
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
.
Added Module.watchValueFunction
method to be a base for all other watch methods. Updated all watch methods.
Ensure that all
watch
methods have similar parameters and functionality. They should be similar toModule.watchValue(property, value, get, set)
. They should set a default value if possible, and potentially provide overrides toObject.defineProperty
.Known methods are:
Widget.watchProperty
Widget.watchAttribute
Widget.watchStyle
Widget.watchData
Widget.watchClass
Text.watchProperty
HashRouter.watchMethod
BrowserStorage.watchLocalStorage
BrowserStorage.watchSessionStorage