Skip to content

Commit

Permalink
Formatting changes, removed redundant 'var's.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Jul 30, 2010
1 parent 83657c1 commit 32e116e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions jquery.placehold-0.2.js
Expand Up @@ -6,8 +6,8 @@

;(function($) {
$.fn.placehold = function( options ) {
var opts = $.extend( {}, $.fn.placehold.defaults, options );
var supported = $.fn.placehold.is_supported();
var opts = $.extend( {}, $.fn.placehold.defaults, options ),
supported = $.fn.placehold.is_supported();

function toggle( arr ) {
for ( i = 0; i < arr.length; i++ ) {
Expand All @@ -17,7 +17,9 @@

return this.each( function() {
if ( !supported ) {
var elem = $( this ), placeholder_attr = elem.attr( "placeholder" ), is_password = ( elem.attr( "type" ) == "password" ) ? true : false;
var elem = $( this ),
placeholder_attr = elem.attr( "placeholder" ),
is_password = ( elem.attr( "type" ) == "password" ) ? true : false;

if ( placeholder_attr ) {
if ( !elem.val() || elem.val() == placeholder_attr ) {
Expand Down
2 changes: 1 addition & 1 deletion jquery.placehold-0.2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 32e116e

Please sign in to comment.