Skip to content

Commit

Permalink
Merge pull request mathiasbynens#73 from dsgh/patch-1
Browse files Browse the repository at this point in the history
Use ASCII only for compatibility with crappy build scripts and frameworks
  • Loading branch information
mathiasbynens committed Apr 29, 2012
2 parents ae85bce + c9fe9f2 commit 37da36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
element.value = value;
// Issue #56: Setting the placeholder causes problems if the element continues to have focus.
if (element != document.activeElement) {
// We cant use `triggerHandler` here because of dummy text/password inputs :(
// We can't use `triggerHandler` here because of dummy text/password inputs :(
setPlaceholder.call(element);
}
} else if ($element.hasClass('placeholder')) {
Expand All @@ -68,7 +68,7 @@
$(function() {
// Look for forms
$(document).delegate('form', 'submit.placeholder', function() {
// Clear the placeholder values so they dont get submitted
// Clear the placeholder values so they don't get submitted
var $inputs = $('.placeholder', this).each(clearPlaceholder);
setTimeout(function() {
$inputs.each(setPlaceholder);
Expand Down

0 comments on commit 37da36e

Please sign in to comment.