onsi/cocktail — pull request #9 by dspangen (2013-07-01 18:32:17+00:00)
Title: Mixin primitives when no definition exists on target class

If one defines a mixin such as:

var Mixin = { thisIsAPrimitive: fase }

When mixing this mixin in, the value will not be copied to the prototype. This patch performs said mixin only when the target class contains no definition for the primitive. I could also be convinced that overwriting whatever is in the class is appropriate as well.