src/utils.js
function (obj, prop, callback, callbackParams) {
                var value = obj[prop];

                Object.defineProperty(
                    obj,
                    prop,
                    {
                        get: function () {
                            return value;
                        },
                        set: function (newValue) {
                            value = newValue;
                            callback(newValue, callbackParams);
                        }
                    }
                );
            }
function (obj, prop, callback, callbackParams) {
                var value = obj[prop];

                Object.defineProperty(
                    obj,
                    prop,
                    {
                        get: function () {
                            return value;
                        },
                        set: function (newValue) {
                            value = newValue;
                            callback(newValue, callbackParams);
                        }
                    }
                );
            }
function ( obj , prop , callback , callbackParams ) { var value = obj [ prop ] ; Object . defineProperty ( obj , prop , { get : function ( ) { return value ; } , set : function ( newValue ) { value = newValue ; callback ( newValue , callbackParams ) ; } } ) ; }
Watches a property, executing a callback when the property changes.
Watches a property executing a callback when the property changes .