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

[core] fix event cant fire when event bingding on root node #2027

Merged
merged 1 commit into from
Jan 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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