* [jsfm] support to normalize refs in vue
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/80bd8e29 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/80bd8e29 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/80bd8e29 Branch: refs/heads/0.16-dev Commit: 80bd8e294cd72990c88e50d70322e62cfde8c0b2 Parents: afc261e Author: Hanks <zhanghan...@gmail.com> Authored: Fri Jul 28 17:47:35 2017 +0800 Committer: Hanks <zhanghan...@gmail.com> Committed: Fri Jul 28 17:47:35 2017 +0800 ---------------------------------------------------------------------- html5/runtime/task-center.js | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/80bd8e29/html5/runtime/task-center.js ---------------------------------------------------------------------- diff --git a/html5/runtime/task-center.js b/html5/runtime/task-center.js index 41b3607..e538631 100644 --- a/html5/runtime/task-center.js +++ b/html5/runtime/task-center.js @@ -74,6 +74,9 @@ export class TaskCenter { if (v instanceof Element) { return v.ref } + if (v._isVue && v.$el instanceof Element) { + return v.$el.ref + } return v case 'function': return this.callbackManager.add(v).toString()