code: function getInjectedValue(component, propertyName, source) {
    var value;
    var primitiveDefaults = source.defaultComponentsFromPrimitive || {};
    var aFrameDefaults = source.defaultComponents || {};
    var defaultSources = [primitiveDefaults, aFrameDefaults];
    for (var i = 0; value === undefined && i < defaultSources.length; i++) {
      var defaults = defaultSources[i];
      if (defaults.hasOwnProperty(component.name)) {
        if (!propertyName) {
          value = defaults[component.name];
        } else {
          value = defaults[component.name][propertyName];
        }
      }
    }
    return value;
  }
docs: Gets the value for a component or component's property coming from primitive
  defaults or a-frame defaults. In this specific order.
  
  @param {Component} component      Component to be found.
  @param {string}    [propertyName] If provided, component's property to be
  found.
  @param {Element}   source         Element owning the component.
  @return                           The component value coming from the
  injected default components of source.