* [jsfm] fix bug: event will not be registered to document if the "ap… #1221
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
reproduce: weex/examples/component/scroller-demo.js
reproduce method: pull up the list at the end,the loading component will not be hidden, because the loading event does not be invoked
root cause: when creating the virtual DOM tree, if the root container's "append" attribute is "tree", the whole page will be create first and then be added to the document, which means that the docId will be assigned to the root container at last, while all of its children nodes can not get the docId when they are being created. A node couldn't be added to the "nodemap" of document if it do not have the docId. If an event is passed from native, the current document cannot find the proper component to handle it, because its "nodemap" is empty.