~caneypuggies/reformedchurcheslocator/couchapp-backbone

« back to all changes in this revision

Viewing changes to _attachments/js/vendor/modernizr/feature-detects/forms-placeholder.js

  • Committer: Tim Black
  • Date: 2013-09-16 22:50:16 UTC
  • Revision ID: tim@alwaysreformed.com-20130916225016-zk8jiba25z33ew7h
Versioned Bower vendor directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// testing for placeholder attribute in inputs and textareas
 
2
// re-using Modernizr.input if available
 
3
 
 
4
Modernizr.addTest('placeholder', function(){
 
5
 
 
6
  return !!( 'placeholder' in ( Modernizr.input    || document.createElement('input')    ) && 
 
7
             'placeholder' in ( Modernizr.textarea || document.createElement('textarea') )
 
8
           );
 
9
 
 
10
});