Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor out object+ and Events mixin #138

Open
gaperton opened this issue Feb 23, 2016 · 5 comments
Open

Factor out object+ and Events mixin #138

gaperton opened this issue Feb 23, 2016 · 5 comments

Comments

@gaperton
Copy link

Move core infrastructure to the separate npm package.

Events will become dependency-free. Currently it uses following things from underscore: keys, uniqueId, isEmpty, size, bind, once.

Events unit test must be taken from backbone 1.2 regression.

Events must be optimized for JIT (thus, performance test needs to be added).

@far-blue
Copy link

far-blue commented Mar 8, 2016

👍

@gaperton
Copy link
Author

gaperton commented Aug 1, 2016

Done in 'develop' (src/object-plus), to be released as separate package when 2.0 will be released.

@gaperton
Copy link
Author

gaperton commented Sep 2, 2016

Here. Mostly works. Awaiting to be published to npm. https://github.com/Volicon/object-plus

@far-blue
Copy link

far-blue commented Sep 2, 2016

looks really interesting :) I'll have to evaluate how well it will work for us as we currently require IE9 support. We are not a TypeScript team so will need to work out how to mentally translate TS docs into JS :) But it would be great to swap out our own backbone-like extending 'class' object with Object+ and gain the additional functionality and the optimisations :)

@gaperton
Copy link
Author

gaperton commented Sep 3, 2016

It believe it shouldn't be the big deal to make this thingy IE9-compatible. If it's not yet.

In addition to standard backbone .extend and Events, you have mixins and native properties definitions. Events should work a bit faster. Especially when you use Messenger base class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants