omi-mp - supports moved

This commit is contained in:
dntzhang 2018-11-13 19:34:29 +08:00
parent e708c960f6
commit 884955af24
3 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,8 @@ class Element extends WeElement {
mpOption.ready && mpOption.ready.call(this)
}
adoptedCallback = mpOption.moved || function() {}
triggerEvent = function(name, data) {
this.fire(name, data)
}

View File

@ -58,6 +58,8 @@ class Element extends WeElement {
mpOption.ready && mpOption.ready.call(this)
}
adoptedCallback = mpOption.moved || function() {}
triggerEvent = function(name, data) {
this.fire(name, data)
}

View File

@ -65,6 +65,8 @@ class Element extends WeElement {
mpOption.ready && mpOption.ready.call(this)
}
adoptedCallback = mpOption.moved || function() {}
triggerEvent = function(name, data) {
this.fire(name, data)
}