MCPcopy Index your code
hub / github.com/processing/p5.js / class

Method class

src/dom/p5.Element.js:471–478  ·  view source on GitHub ↗

* @return {String} element's classes, if any.

(c)

Source from the content-addressed store, hash-verified

469 * @return {String} element's classes, if any.
470 */
471 class(c) {
472 if (typeof c === 'undefined') {
473 return this.elt.className;
474 }
475
476 this.elt.className = c;
477 return this;
478 }
479
480 /**
481 *

Callers 8

gotFileFunction · 0.80
gotFileFunction · 0.80
setupFunction · 0.80
setupFunction · 0.80
setupFunction · 0.80
setupFunction · 0.80
generateButtonFunction · 0.80
generateDivFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected