Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernizr plugins API for adding your own custom tests #6

Closed
Modernizr opened this issue Sep 25, 2009 · 1 comment
Closed

Modernizr plugins API for adding your own custom tests #6

Modernizr opened this issue Sep 25, 2009 · 1 comment

Comments

@Modernizr
Copy link
Collaborator

Remy Sharp submitted this API:

ret.addTest = function (feature, test) {
  if (this.hasOwnProperty( feature )) {
    // warn that feature is already in place
  } 

  input[ feature ] = !!(test());
};
@paulirish
Copy link
Member

addTest method for allowing plugins. closed by 05f8284

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant