1.0.2 • Published 9 years ago
mixturejs v1.0.2
MixtureJS
Mixins is very powerful abstraction addressing cross-cutting concerns, which can dramatically simplify inheritance graph when used wisely.
MixtureJS is the toolkit combining React-style mixins, Backbone-style events, and minimal set of Underscore-style object manipulation functions. Just what you need when you're working in modern ES5/ES6 envorinment, packed in API which you already know.
Written in TypeScript, works with ES5, ES6, and TypeScript.
API docs: here
Events Performance
MixtureJS implements Backbone API for Events, but internally it's entirely different. Here's the results of the typical run of the performance tests enclosed.
![]()
Features
Mixable, React-style mixins implementation.- Fine-grained control over member merge rules.
- Can mix both classes and plain objects.
- Works with and without ES6 class decorators.
Object.extendto simulate classes in ES5.- 100% backward compatible with Backbone
.extend(). - Complete
Mixablesupport. - Native properties declatations (
propertiesspecification).
- 100% backward compatible with Backbone
Messenger, synchronous events.- Can be used as mixin and as a base class.
- 100% backward API compatibility with Backbone Events (passes Backbone 1.2.x unit test)
- Much faster than Backbone events.
tools- Object manipulation tools (
assign,defaults,mapObject, etc). - Simple logging API with variable log-level and overridable functions. Defaults to the
console.
- Object manipulation tools (