src/components/meta/Properties.js
function() {

            var that = this;
            var propertiesParams = that.__getPropertiesParam();

            _.each(propertiesParams, function(params, property) {

                var value = that.__getPropertyValue(property);

                if (_.isUndefined(value) && 'default' in params) {

                    var defaultValue = params.default;

                    if (_.isFunction(defaultValue)) {
                        defaultValue = defaultValue.call(that);
                    }

                    if (defaultValue) {
                        if ((_.isSimpleObject(defaultValue)) || _.isArray(defaultValue)) {
                            defaultValue = _.clone(defaultValue)
                        }
                    }

                    that.__setPropertyValue(property, defaultValue, false);
                }
            });
        }
function() {

            var that = this;
            var propertiesParams = that.__getPropertiesParam();

            _.each(propertiesParams, function(params, property) {

                var value = that.__getPropertyValue(property);

                if (_.isUndefined(value) && 'default' in params) {

                    var defaultValue = params.default;

                    if (_.isFunction(defaultValue)) {
                        defaultValue = defaultValue.call(that);
                    }

                    if (defaultValue) {
                        if ((_.isSimpleObject(defaultValue)) || _.isArray(defaultValue)) {
                            defaultValue = _.clone(defaultValue)
                        }
                    }

                    that.__setPropertyValue(property, defaultValue, false);
                }
            });
        }
function ( ) { var that = this ; var propertiesParams = that . __getPropertiesParam ( ) ; _ . each ( propertiesParams , function ( params , property ) { var value = that . __getPropertyValue ( property ) ; if ( _ . isUndefined ( value ) && 'default' in params ) { var defaultValue = params . default ; if ( _ . isFunction ( defaultValue ) ) { defaultValue = defaultValue . call ( that ) ; } if ( defaultValue ) { if ( ( _ . isSimpleObject ( defaultValue ) ) || _ . isArray ( defaultValue ) ) { defaultValue = _ . clone ( defaultValue ) } } that . __setPropertyValue ( property , defaultValue , false ) ; } } ) ; }
Sets properties defaults values

@this {clazz|object}
Sets properties defaults values