Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove redundant local variable for flagClass option

  • Loading branch information...
commit ce8946ec3f0c71c6843302987d1df7c5386d3564 1 parent 3f15b3a
Steve Purcell authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  jquery.placeholder.js
3  jquery.placeholder.js
@@ -36,7 +36,6 @@
36 36 */
37 37 (function($) {
38 38 $.fn.placeholder = function(placeholder, options) {
39   - var flagClass = "placeholder";
40 39 options = $.extend({}, $.fn.placeholder.defaults, options);
41 40 var has_value = function(value) {
42 41 return function() {
@@ -54,7 +53,7 @@
54 53 .blur(maybe_set_placeholder)
55 54 .each(maybe_set_placeholder)
56 55 .closest("form").submit(function() {
57   - $(this).find("input." + flagClass).each(maybe_unset_placeholder);
  56 + $(this).find("input." + options.flagClass).each(maybe_unset_placeholder);
58 57 })
59 58 .end();
60 59 };

0 comments on commit ce8946e

Please sign in to comment.
Something went wrong with that request. Please try again.