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

p5.Element.elt be HTMLElement instead of any #6189

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/core/p5.Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import p5 from './main';
*
* @class p5.Element
* @constructor
* @param {String} elt DOM node that is wrapped
* @param {HTMLElement} elt DOM node that is wrapped
* @param {p5} [pInst] pointer to p5 instance
*/
p5.Element = class {
Expand All @@ -37,6 +37,7 @@ p5.Element = class {
*
* @property elt
* @readOnly
* @type {HTMLElement}
*/
this.elt = elt;
this._pInst = this._pixelsState = pInst;
Expand Down