code: function mixin(name, mix, g) {
        // Unnamed global
        if (isObject$1(name)) {
          mixin(("__" + (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$1(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