From 48529ae3e2945d528a21317a93e2aaf5c556158c Mon Sep 17 00:00:00 2001 From: metacryst Date: Sat, 4 May 2024 13:57:01 -0500 Subject: [PATCH] add "this" to onappear --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a12be9d..cba9193 100644 --- a/index.js +++ b/index.js @@ -779,7 +779,7 @@ HTMLElement.prototype.positionType = function (value) { /* PROTOTYPE EVENTS */ HTMLElement.prototype.onAppear = function(func) { - func() + func(this) return this } HTMLElement.prototype.onClick = function(func) {