omi-mp - fix parse error
This commit is contained in:
parent
aab73e10ba
commit
84602146c1
|
@ -140,6 +140,11 @@ class Element extends WeElement {
|
|||
|
||||
install() {
|
||||
this.properties = this.props
|
||||
Object.keys(mpOption).forEach(key => {
|
||||
if (typeof mpOption[key] === 'function') {
|
||||
Element.prototype[key] = mpOption[key].bind(this)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
uninstall = mpOption.onUnload || function() {}
|
||||
|
|
Loading…
Reference in New Issue