Skip to content

Commit

Permalink
Simplify. #415
Browse files Browse the repository at this point in the history
  • Loading branch information
John Dzak committed Feb 27, 2013
1 parent 71a1025 commit d31e5d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/assets/javascripts/surveyor/jquery.surveyor.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,7 @@ jQuery(document).ready(function(){
jQuery("input[data-input_mask]").each(function(i,e){
var inputMask = $(e).attr('data-input_mask');
var placeholder = $(e).attr('data-placeholder');
var options = {};
if (placeholder) {
options = {placeholder: placeholder}
}
var options = { placeholder: placeholder };
$(e).mask(inputMask, options);
});

Expand Down

0 comments on commit d31e5d5

Please sign in to comment.