Skip to content
Browse files

Remove redundant local variable for flagClass option

  • Loading branch information...
1 parent 3f15b3a commit ce8946ec3f0c71c6843302987d1df7c5386d3564 @purcell committed Nov 18, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 jquery.placeholder.js
View
3 jquery.placeholder.js
@@ -36,7 +36,6 @@
*/
(function($) {
$.fn.placeholder = function(placeholder, options) {
- var flagClass = "placeholder";
options = $.extend({}, $.fn.placeholder.defaults, options);
var has_value = function(value) {
return function() {
@@ -54,7 +53,7 @@
.blur(maybe_set_placeholder)
.each(maybe_set_placeholder)
.closest("form").submit(function() {
- $(this).find("input." + flagClass).each(maybe_unset_placeholder);
+ $(this).find("input." + options.flagClass).each(maybe_unset_placeholder);
})
.end();
};

0 comments on commit ce8946e

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