-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bindable without jQuery #2
Comments
it would also complicate how we expect to be able to handle Jed Schneider "I invented the term 'Object-Oriented', and I can tell you I did not have C++ in mind."
On Saturday, May 4, 2013 at 5:08 PM, Matthew Kitt wrote:
|
Yep, that's why I think there are two separate files. One with jQuery and one without. It's a decision that's made at the start of a project on which one we are using. |
Theoretically, we could detect the presence of |
Lots of potential issues here, but getting the ball rolling. See #2 for the conversation
Okay took an initial stab at this thing including the storage of the instance back on the element. I'll need to test this with a few browsers first, but I imagine there are some problems with storing the instance back on the @gvarela, I'll defer to you on the instance storage within the Also, need to do some trickery around the naming of the I wrote it in plain old JavaScript. If we are going to distribute this thing as from the discussion in #1, it's probably a better idea for the distributed source to be native and not just the output from CoffeeScript. Lots of haters out there who'll reject it based on just that notion. Stupid yes. I do think we should have the CoffeeScript examples either right next to them, or in another branch, but I'm cool either way. |
The instance storage is to prevent accidental double binding as well as make it easy to access the instance should you need a reference to manipulate it in some way. As long as the way you implemented it handles those scenarios I would call it good. |
Yeah it's just... if (!el[this.instanceKey]) {
el[this.instanceKey] = new _class(el)
} |
Yeah saw that. Since I don't know the modern way to do that I just wanted communicate the intent. |
I kinda feel like we shouldn't be apologetic about releasing it as coffeescript. I had a chat with a friend of mine that is really into node development and he said the same thing, he stopped writing coffeescript because he couldn't get other node developers to work with him on it. I think that is a really sad reflection of that community. I think we should be more like
I dont know, is that too hardline? Jed Schneider "I invented the term 'Object-Oriented', and I can tell you I did not have C++ in mind."
On Thursday, May 9, 2013 at 11:59 AM, Gabe Varela wrote:
|
I think for a library this small it should be js. There isn't really an advantage when there is this little code. |
so, @mkitt I think we are good to close this issue, right? |
We talked briefly about this yesterday, but it would be super handy to have a version of bindable that works without jQuery using only native JavaScript. The challenge here is storing the registry, which @gvarela has more insight on. Not a high priority, but would be really handy for those projects that only require a little bit of JavaScript and doesn't necessarily need jQuery involved.
The text was updated successfully, but these errors were encountered: