Permalink
Browse files

Tag the v2.0.4 release

  • Loading branch information...
mathiasbynens committed Feb 23, 2012
1 parent a9fd43d commit 5a01d981b6c75dbe50af347b5ede746917abdffc
Showing with 9 additions and 6 deletions.
  1. +5 −2 README.md
  2. +2 −2 jquery.placeholder.js
  3. +2 −2 jquery.placeholder.min.js
View
@@ -58,8 +58,11 @@ I’d suggest sticking to the `#aaa` color for placeholder text, as it’s the d
This plugin is dual licensed under the MIT and GPL licenses, just like jQuery itself.
-## Credits
+## Thanks to…
-Kudos to [Paul Irish](http://paulirish.com/) for his inspiring snippet in [jQuery 1.4 Hawtness #1](http://jquery14.com/day-05/jquery-1-4-hawtness-1-with-paul-irish) and everyone from [#jquery](http://webchat.freenode.net/?channels=jquery) for the tips, ideas and patches. Much ♥ to temp01 for his major contributions.
+* [Paul Irish](http://paulirish.com/) for his inspiring snippet in [jQuery 1.4 Hawtness #1](http://jquery14.com/day-05/jquery-1-4-hawtness-1-with-paul-irish)
+* everyone from [#jquery](http://webchat.freenode.net/?channels=jquery) for the tips, ideas and patches
+* temp01 for his major contributions
+* anyone who [contributed a patch](https://github.com/mathiasbynens/jquery-placeholder/contributors) or [made a helpful suggestion](https://github.com/mathiasbynens/jquery-placeholder/issues)
_– [Mathias](http://mathiasbynens.be/)_
View
@@ -1,4 +1,4 @@
-/*! http://mths.be/placeholder v2.0.3 by @mathias */
+/*! http://mths.be/placeholder v2.0.4 by @mathias */
;(function(window, document, $) {
var isInputSupported = 'placeholder' in document.createElement('input'),
@@ -46,7 +46,7 @@
if (value == '') {
element.value = value;
// Issue #56: Setting the placeholder causes problems if the element continues to have focus.
- if (!$element.is(':focus')) {
+ if (element != document.activeElement) {
// We can’t use `triggerHandler` here because of dummy text/password inputs :(
setPlaceholder.call(element);
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 5a01d98

Please sign in to comment.