code: function mixin(dest, src) {
    if (type(src) == 'function') {
      extend(dest, src.prototype)
    }
    else {
      extend(dest, src)
    }
  }
docs: Mixes in properties from one object to another. If the source object is a
  Function, its prototype is mixed in instead.