As front-end developers we all know the pain of coming up with meaningful component names for CSS classes. I created this gist as a place to collect terms that are suitable as user interface component names.
Please contribute your own ideas!
- button
| var partial = function () { | |
| var toArray = function (a) { return [].slice.call(a); }, | |
| appliedArgs = toArray(arguments), | |
| fn = appliedArgs.shift(), | |
| placeholderPositions = appliedArgs.map(function (e, i) { | |
| if (e === '_') { return i; } | |
| }).join('').split(''); | |
| return function () { | |
| var args = toArray(arguments); |
| /** | |
| * Prevent click events after a touchend. | |
| * | |
| * Inspired/copy-paste from this article of Google by Ryan Fioravanti | |
| * https://developers.google.com/mobile/articles/fast_buttons#ghost | |
| * | |
| * USAGE: | |
| * Prevent the click event for an certain element | |
| * ```` | |
| * PreventGhostClick(myElement); |
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |