Bug Tracker

Changes between Initial Version and Version 1 of Ticket #5087, comment 50


Ignore:
Timestamp:
Mar 8, 2013, 7:14:22 AM (4 years ago)
Author:
alnitak
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5087, comment 50

    initial v1  
    1 I've just created a plugin that replaces .hasClass, .addClass and .removeClass with versions that use element.classList if available, and which fallback to the original functions for the more unusual cases (i.e. multiple classes, function parameters, etc).
     1I've also created a plugin that replaces .hasClass, .addClass and .removeClass with versions that use element.classList if available, and which fallback to the original functions for the more unusual cases (i.e. multiple classes, function parameters, etc).
    22
    33https://gist.github.com/raybellis/5115997