Wes Mantooth - HTML5 Canvas Game Engine - Version 2.x - by Jeremy Heminger

Classes organised alphabetically

Shortys

hasClass -> {Boolean}

prototype returns if a target DOM node has specified class

Name Type Description
c Sring Example:
if(document.getElementById('foo').hasClass('bar')) action();

addClass -> {Void}

prototype adds specified class to target DOM node

Name Type Description
c String Example 1:
document.getElementById('foo').addClass('bar');
Example 2: (appends blah to bar for ID foo)
document.getElementById('foo').addClass('blah');

removeClass -> {Void}

prototype remove specified class from target DOM node

Name Type Description
c Sring Example:
document.getElementById('foo').removeClass('bar');