Eve.js
Eve.js copied to clipboard
Enhancement: Configurable library namespace
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
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?
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.