Skip to content

Commit

Permalink
Fix uibench performance regression for node removal reflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed May 24, 2016
1 parent e8a1924 commit f42d2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vdom/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function innerDiffNode(dom, vchildren, context, mountAll) {
if (c) deepHook(c, 'componentWillMount');

let next = originalChildren[i];
if (next!==child) {
if (next!==child && originalChildren[i+1]!==child) {
if (next) {
dom.insertBefore(child, next);
}
Expand Down

0 comments on commit f42d2c7

Please sign in to comment.