Allow plain objects to be used as mixins to Spina classes.

Review Request #12905 — Created March 21, 2023 and submitted — Latest diff uploaded

Information

Spina
master

Reviewers

Previously, mixins had to be class definitions with a prototype. Now,
they can be plain objects as well.

This enhances the capabilities of mixins, allowing interoperability with
mixins in legacy Backbone codebases that previously used _.extend() to
mix prototypes together.

Made use of this in Review Board with plain objects and classes as mixins.
They properly mixed in.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Allow plain objects to be used as mixins to Spina classes.
Previously, mixins had to be class definitions with a prototype. Now, they can be plain objects as well. This enhances the capabilities of mixins, allowing interoperability with mixins in legacy Backbone codebases that previously used `_.extend()` to mix prototypes together.
83231b274a1d71e63ef2f3fb0f05a4a4ad3f5a1f Christian Hammond
src/objects.ts
Loading...