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

Enhancement: Configurable library namespace #22

Open
bolora opened this issue Jun 26, 2015 · 2 comments
Open

Enhancement: Configurable library namespace #22

bolora opened this issue Jun 26, 2015 · 2 comments

Comments

@bolora
Copy link

bolora commented Jun 26, 2015

Would like to be able to configure the library namespace.

For example, before loading Eve.js you could have win.eve_namespace = foobar;

Then you can use the library as such: foobar.scope, foobar.register, foobar.attach, etc

@Yuffster
Copy link
Owner

Scopes are recursive, so you could actually do something like:

Eve.scope('.foobar', function() {

    this.scope('.scope', /* ... */);

    this.scope('.register', /* ... */);

    // etc...

});

Does that solve your use case?

@Yuffster
Copy link
Owner

Though, if you're looking to actually use this in production, I have a vanilla implementation that supports all A-grade browsers, handles switching between component states, and might actually be smaller than Eve.js.

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