Skip to content

cerebralideas/phi-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Phi Polyfill

A polyfill library for phi.

Needed features:

  • A fallback for Object.create(): MDN Object.create()
  • A fallback for classList: a way of adding, toggling and removing class or classes from a DOM element.
  • A fallback for hasClass, the jQuery method for testing the existance of a class.
  • A fallback for accessing data attributes from a DOM element.
  • A fallback for handling stopPropogation and preventDefault. Josh has already done some work in this area; see his overlay.js.
  • A more jQuery way of selecting elements. Just wrapping the native getElementById, getElementsByTagName and querySelectorAll. Just test for the existance of a hash, a dot and just alphanumeric to know which to use.
  • A fallback for event listeners: .click()
  • A fallback for event delegation (think jQuery's .on() method).

Resources:

About

A polyfill library for phi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published