Skip to content

Commit

Permalink
[core] fix incorrect data this get from js
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Dec 17, 2018
1 parent b92b1e7 commit 8b33bc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion weex_core/Source/core/data_render/vnode/vnode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
#include <core/data_render/object.h>
#include "core/data_render/object.h"
#include "core/render/node/factory/render_creator.h"
#include "core/data_render/vnode/vnode.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,9 @@ void PatchVNode(const string& page_id, VNode* old_node, VNode* new_node) {
int index = 0;
for (auto it = new_node->child_list()->cbegin();
it != new_node->child_list()->cend(); it++) {
WeexCore::RenderObject *root = VNode2RenderObject(*it, page_id);
WeexCore::RenderObject *child_node = ParseVNode2RenderObject(*it, nullptr, false, 0, page_id);
RenderManager::GetInstance()->AddRenderObject(
page_id, (*it)->parent()->render_object_ref(), index, root);
page_id, (*it)->parent()->render_object_ref(), index, child_node);
++index;
}
}
Expand Down

0 comments on commit 8b33bc6

Please sign in to comment.