   Function::mixinto_class = (mixin) ->
     HELPERS.validate_mixin(mixin)
 
-    for key, value of mixin when key not in module_kw
+    for key, value of mixin when key not in postmixin_hooks
       @[key] = value
     if typeof mixin.post_classmixin == 'function'
       mixin.post_classmixin.call(@, (HELPERS.rest_of.apply @, arguments)...)

  Function::mixinto_proto = (mixin) ->
    HELPERS.validate_mixin(mixin)

    for key, value of mixin when key not in module_kw
      @::[key] = value
    if typeof mixin.post_protomixin == 'function'
      mixin.post_protomixin.call(@::, (HELPERS.rest_of.apply @, arguments)...)

HELPERS = require('./helpers')


postmixin_hooks = [
  'post_classmixin'
  'post_protomixin'
]
