ginader/HTML5-placeholder-polyfill — pull request #62 by rockallite (2014-04-14 02:03:23+00:00)
Title: Reduce CSS changes when input is focused

When an input is focused, the requestAnimationFrame check loop should change CSS only when it is necessary.

So instead of repeatedly calling `showPlaceholderIfEmpty()` (which calls `removeClass()` or `addClass()` all the time) in the check loop, we should polling `input.val()` and call `hidePlaceholder()` or `showPlaceholder()` only when the boundary condition is satisfied.