code: function mixin$1(name, mix, g) {
    // Unnamed global
    if (isObject(name)) {
      mixin$1(("__" + (mixins_id++) + "__"), name, true);
      return
    }
  
    var store = g ? globals : mixins;
  
    // Getter
    if (!mix) {
      if (isUndefined(store[name]))
        { throw new Error(("Unregistered mixin: " + name)) }
  
      return store[name]
    }
  
    // Setter
    store[name] = isFunction(mix) ?
      extend(mix.prototype, store[name] || {}) && mix :
      extend(store[name] || {}, mix);
  }
docs: Create/Return a mixin by its name
  @param   { String }  name - mixin name (global mixin if object)
  @param   { Object }  mix - mixin logic
  @param   { Boolean } g - is global?
  @returns { Object }  the mixin logic