src/stampit.js
function standardiseDescriptor(descr) {
    var4 = {};

    var4[_methods] = descr[_methods] || _undefined;

    var1 = descr[_properties];
    var2 = descr.props;
    var4[_properties] = isObject(var1 || var2) ? assign({}, var2, var1) : _undefined;

    var4[_initializers] = extractUniqueFunctions(descr.init, descr[_initializers]);

    var4[_composers] = extractUniqueFunctions(descr[_composers]);

    var1 = descr[_deepProperties];
    var2 = descr[_deepProps];
    var4[_deepProperties] = isObject(var1 || var2) ? merge({}, var2, var1) : _undefined;

    var4[_propertyDescriptors] = descr[_propertyDescriptors];

    var1 = descr[_staticProperties];
    var2 = descr.statics;
    var4[_staticProperties] = isObject(var1 || var2) ? assign({}, var2, var1) : _undefined;

    var1 = descr[_staticDeepProperties];
    var2 = descr[_deepStatics];
    var4[_staticDeepProperties] = isObject(var1 || var2) ? merge({}, var2, var1) : _undefined;

    var1 = descr[_staticPropertyDescriptors];
    var2 = descr.name && {name: {value: descr.name}};
    var4[_staticPropertyDescriptors] = isObject(var2 || var1) ? assign({}, var1, var2) : _undefined;

    var1 = descr[_configuration];
    var2 = descr.conf;
    var4[_configuration] = isObject(var1 || var2) ? assign({}, var2, var1) : _undefined;

    var1 = descr[_deepConfiguration];
    var2 = descr[_deepConf];
    var4[_deepConfiguration] = isObject(var1 || var2) ? merge({}, var2, var1) : _undefined;

    return var4;
  }
function standardiseDescriptor(descr) {
    var4 = {};

    var4[_methods] = descr[_methods] || _undefined;

    var1 = descr[_properties];
    var2 = descr.props;
    var4[_properties] = isObject(var1 || var2) ? assign({}, var2, var1) : _undefined;

    var4[_initializers] = extractUniqueFunctions(descr.init, descr[_initializers]);

    var4[_composers] = extractUniqueFunctions(descr[_composers]);

    var1 = descr[_deepProperties];
    var2 = descr[_deepProps];
    var4[_deepProperties] = isObject(var1 || var2) ? merge({}, var2, var1) : _undefined;

    var4[_propertyDescriptors] = descr[_propertyDescriptors];

    var1 = descr[_staticProperties];
    var2 = descr.statics;
    var4[_staticProperties] = isObject(var1 || var2) ? assign({}, var2, var1) : _undefined;

    var1 = descr[_staticDeepProperties];
    var2 = descr[_deepStatics];
    var4[_staticDeepProperties] = isObject(var1 || var2) ? merge({}, var2, var1) : _undefined;

    var1 = descr[_staticPropertyDescriptors];
    var2 = descr.name && {name: {value: descr.name}};
    var4[_staticPropertyDescriptors] = isObject(var2 || var1) ? assign({}, var1, var2) : _undefined;

    var1 = descr[_configuration];
    var2 = descr.conf;
    var4[_configuration] = isObject(var1 || var2) ? assign({}, var2, var1) : _undefined;

    var1 = descr[_deepConfiguration];
    var2 = descr[_deepConf];
    var4[_deepConfiguration] = isObject(var1 || var2) ? merge({}, var2, var1) : _undefined;

    return var4;
  }
function standardiseDescriptor ( descr ) { var4 = { } ; var4 [ _methods ] = descr [ _methods ] || _undefined ; var1 = descr [ _properties ] ; var2 = descr . props ; var4 [ _properties ] = isObject ( var1 || var2 ) ? assign ( { } , var2 , var1 ) : _undefined ; var4 [ _initializers ] = extractUniqueFunctions ( descr . init , descr [ _initializers ] ) ; var4 [ _composers ] = extractUniqueFunctions ( descr [ _composers ] ) ; var1 = descr [ _deepProperties ] ; var2 = descr [ _deepProps ] ; var4 [ _deepProperties ] = isObject ( var1 || var2 ) ? merge ( { } , var2 , var1 ) : _undefined ; var4 [ _propertyDescriptors ] = descr [ _propertyDescriptors ] ; var1 = descr [ _staticProperties ] ; var2 = descr . statics ; var4 [ _staticProperties ] = isObject ( var1 || var2 ) ? assign ( { } , var2 , var1 ) : _undefined ; var1 = descr [ _staticDeepProperties ] ; var2 = descr [ _deepStatics ] ; var4 [ _staticDeepProperties ] = isObject ( var1 || var2 ) ? merge ( { } , var2 , var1 ) : _undefined ; var1 = descr [ _staticPropertyDescriptors ] ; var2 = descr . name && { name : { value : descr . name } } ; var4 [ _staticPropertyDescriptors ] = isObject ( var2 || var1 ) ? assign ( { } , var1 , var2 ) : _undefined ; var1 = descr [ _configuration ] ; var2 = descr . conf ; var4 [ _configuration ] = isObject ( var1 || var2 ) ? assign ( { } , var2 , var1 ) : _undefined ; var1 = descr [ _deepConfiguration ] ; var2 = descr [ _deepConf ] ; var4 [ _deepConfiguration ] = isObject ( var1 || var2 ) ? merge ( { } , var2 , var1 ) : _undefined ; return var4 ; }
Converts stampit extended descriptor to a standard one.
@param {Object|*} descr
methods
properties
props
initializers
init
deepProperties
deepProps
propertyDescriptors
staticProperties
statics
staticDeepProperties
deepStatics
staticPropertyDescriptors
configuration
conf
deepConfiguration
deepConf
composers
@returns {Descriptor} Standardised descriptor
Converts stampit extended descriptor to a standard one .