Sidebar fully functional
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
Sam Russell
|
||||
Captured Sun
|
||||
2.21.26 - Making state() be called on initial definition
|
||||
2.20.26 - Adding state()
|
||||
2.19.26 - Adding dynamicText()
|
||||
2.16.26 - Adding event objects to the onTouch callbacks
|
||||
@@ -704,6 +705,8 @@ HTMLElement.prototype.state = function(attr, cb) {
|
||||
})
|
||||
.observe(this, { attributes: true, attributeFilter: [attr] });
|
||||
|
||||
const value = this.getAttribute(attr);
|
||||
cb.call(this, value)
|
||||
return this
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user