ten1seven/infieldLabel — pull request #4 by nhunzaker (2014-02-18 14:17:42+00:00)
Title: Add event listener to blur inputs on form reset

I love this plugin! This PR makes three changes:

- **Force the blur event on form reset.** I hit a strange issue where the controls wouldn't revert back to their placeholder state if I reset a form programmatically when a dropdown closed. In these commits, I add a selector for the form an input belongs to, and an event listener to execute `base.blur` when form `reset` event is triggered.
- **I reduced the specificity of input selection.** Since the plugin attaches to the parent element of an input and label, it is very easy to avoid cases where an input is selected improperly. I also played around with adding an additional filter to only select [text-like types from the spec](http://www.w3.org/wiki/HTML/Elements/input), but I think the current implementation is sufficient.
- **I removed the anonymous function wrapper around the event listener callbacks**, since these functions do not need to manage scope.