Skip to content

Commit

Permalink
added some white-spaces and line-breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
helgri committed Feb 7, 2012
1 parent 6dff860 commit 6a4bbbe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions feature-detects/forms-placeholder.js
@@ -1,6 +1,10 @@
// testing for placeholder attribute in inputs and textareas
// re-using Modernizr.input if available

Modernizr.addTest('placeholder', function(){
return !!('placeholder' in (Modernizr.input || document.createElement('input')) && 'placeholder' in (Modernizr.textarea || document.createElement('textarea')) );
Modernizr.addTest('placeholder', function(){

return !!( 'placeholder' in ( Modernizr.input || document.createElement('input') ) &&
'placeholder' in ( Modernizr.textarea || document.createElement('textarea') )
);

});

0 comments on commit 6a4bbbe

Please sign in to comment.