add "this" to onappear
This commit is contained in:
2
index.js
2
index.js
@@ -779,7 +779,7 @@ HTMLElement.prototype.positionType = function (value) {
|
|||||||
/* PROTOTYPE EVENTS */
|
/* PROTOTYPE EVENTS */
|
||||||
|
|
||||||
HTMLElement.prototype.onAppear = function(func) {
|
HTMLElement.prototype.onAppear = function(func) {
|
||||||
func()
|
func(this)
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
HTMLElement.prototype.onClick = function(func) {
|
HTMLElement.prototype.onClick = function(func) {
|
||||||
|
|||||||
Reference in New Issue
Block a user