-
Notifications
You must be signed in to change notification settings - Fork 110
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
wrapper for using bean outside of ender #93
Comments
+1 .setSelectorEngine feels a bit jacky to use outside of an Ender bridge. |
Depends on your use-case, this one made @JacksonGariety happy because he's using Browserify: https://github.com/rvagg/nodei.co/blob/master/browser-lib/ender.js But it still uses ender-js to glue them together. @devth are you trying to avoid using ender-js here in particular? It does the magic that builds |
+1 Does anyone have a solution to this? |
You could try Depends on precisely how you're piecing these things together and if you're using some other tool to bundle the components together. |
A standalone solution I often use in my own modules is to create the |
Maybe bean deserves its own simple wrapper: function Bean(o) {
[].push.apply(this, null == o ? [] : o.nodeType || o.window == o ? [o] : o);
}
function bean(o) {
return new Bean(o);
}
bean.fn = bean.prototype = Bean.prototype; |
@rvagg yeah, I just wanted to pick a couple lightweight modules according to my needs without relying on the package management side of Ender, which felt pretty heavy for a little prototype I was working on. Didn't realize ender-js was the glue, maybe that's what I'm missing. |
I want to use the familiar syntax for querying, dom manip, events, etc:
but without the ender glue that typically allows it. I've got
bonzo
andqwery
working together with a snippet I found:How do I then glue
bean
into this mix? Just wrapping it doesn't work.The text was updated successfully, but these errors were encountered: