Skip to content

Commit

Permalink
use this explicitly to make it clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
amerikan committed Nov 5, 2015
1 parent c3675e7 commit 6a5f748
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 @@ -175,7 +175,7 @@
function clearPlaceholder(event, value) {

var input = this;
var $input = $(input);
var $input = $(this);

if (input.value === $input.attr((debugMode ? 'placeholder-x' : 'placeholder')) && $input.hasClass(settings.customClass)) {

Expand Down Expand Up @@ -204,7 +204,7 @@
function setPlaceholder(event) {
var $replacement;
var input = this;
var $input = $(input);
var $input = $(this);
var id = input.id;

// If the placeholder is activated, triggering blur event (`$input.trigger('blur')`) should do nothing.
Expand Down

0 comments on commit 6a5f748

Please sign in to comment.