Which means that a mixin module that just exports a dictionary (say of datatype definitions) can only be used once anywhere in an app.
I could live with requiring mixin modules to export a function to create new copies on demand to get around this, but that's not how we're doing the mixin pattern for Collection mixins.
The
extend()
method has serval lines like: https://github.com/AmpersandJS/ampersand-state/blob/master/ampersand-state.js#L717Which means that a mixin module that just exports a dictionary (say of datatype definitions) can only be used once anywhere in an app.
I could live with requiring mixin modules to export a function to create new copies on demand to get around this, but that's not how we're doing the mixin pattern for Collection mixins.