-
Notifications
You must be signed in to change notification settings - Fork 114
Event namespacing, npm package.json, formatting #22
Conversation
|
||
## Dependencies | ||
Simply include the plugin after you've included [jQuery](http://jquery.com/): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahaha. Personal trifle here, but I dislike when the word "Simply" is involved with instructions because if something goes wrong, I feel like a moron.
Hi! Some thoughts on event names and event namespacing (two separate things, of course). 💯 on namespacing for non-custom events like I'd encourage you to think about custom event naming, per our good friends at Bootstrap who like to give us patterns to cite. We can integrate namespacing and a bit of clarity per their style, which would suggest something more like (While I'm on the tack of bugging you about stuff that isn't in this PR, I noticed while reviewing the README that the different flavors of invoking There's a lot of code not in this PR doing complex stuff! It's beyond my scope to review the code for actual functionality, but that is not the task at hand here, anyway. Formatting looks purty, event namespacing good with possible options for tightening string lengths of event names (very very very very very optional; what you have now is expressive). Documentation is clear with the possible muddle of lots of ways to invoke. Happy to see you even remembered to include |
I completely agree, but since that would be a breaking change, I thought I'd introduce this as a stop-gap to the current version (it solves a bug we encountered on a client project with colliding event names). I'll create a new issue for it.
Yeah, this happened somewhat gradually based on actual usage of the plugin. Because 90% of people who use this seem to use the simplest options, I wanted to make it easy for them. Nowadays, I'd probably shift to a data-API style a la Bootstrap instead, since folks who aren't interested in messing around with JS are probably more comfortable in markup-land anyway. |
Hah! Right! We're reviewing changes for released software. Sometimes I get insulated in my little cocoon. |
Event namespacing, npm package.json, formatting
This PR represents changes for version 2.0.4, including: