You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2019/01/10 02:44:07 UTC

[incubator-weex] branch master updated: [core] fix event cant fire when event bingding on root node (#2027)

This is an automated email from the ASF dual-hosted git repository.

kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new ce669f5  [core] fix event cant fire when event bingding on root node (#2027)
ce669f5 is described below

commit ce669f5bab6d6ea7f2da19a2394ed5949aa2dfb2
Author: jianhan-he <41...@users.noreply.github.com>
AuthorDate: Thu Jan 10 10:44:03 2019 +0800

    [core] fix event cant fire when event bingding on root node (#2027)
---
 weex_core/Source/core/data_render/vnode/vcomponent.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/weex_core/Source/core/data_render/vnode/vcomponent.h b/weex_core/Source/core/data_render/vnode/vcomponent.h
index 704dd16..f142b30 100644
--- a/weex_core/Source/core/data_render/vnode/vcomponent.h
+++ b/weex_core/Source/core/data_render/vnode/vcomponent.h
@@ -52,10 +52,7 @@ class VComponent : public VNode {
   void MoveTo(VComponent* new_component);
 
   inline const std::string render_object_ref() const override {
-    if (root_vnode_.get()) {
-      return root_vnode_->render_object_ref();
-    }
-    return "";
+    return "_component_" + std::to_string(id_);
   }
 
   inline int id() { return id_; }