Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[core] fix event cant fire when event bingding on root node (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he authored and YorkShen committed Jan 10, 2019
1 parent 5f5d260 commit ce669f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions weex_core/Source/core/data_render/vnode/vcomponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_; }
Expand Down

0 comments on commit ce669f5

Please sign in to comment.