Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Ginader committed Aug 8, 2012
1 parent 99923ef commit c6b2aa0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions placeholder_polyfill.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,10 @@
var input = $(this),
text = input.attr('placeholder'),
id = input.attr('id'),
<<<<<<< HEAD
label,placeholder,titleNeeded;
label = input.closest('label');
input.attr('placeholder','');
if(!label.length && !id){
=======
label,placeholder,titleNeeded,polyfilled;
label = input.closest('label')[0];
//input.attr('placeholder','');
label = input.closest('label');
input.removeAttr('placeholder');
if(!label && !id){
>>>>>>> 2.0.2 allow rerun of the placeholder() to cover generated elements - existing polyfilled placeholder will be repositioned. Close #15
if(!label.length && !id){
log('the input element with the placeholder needs an id!');
return;
}
Expand Down

0 comments on commit c6b2aa0

Please sign in to comment.