Skip to content

Commit

Permalink
array原生方法触发更新数据时,不赋值
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed May 5, 2018
1 parent da7115c commit f860ddf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ var Component = function (_Element) {
self.__ob.push(v);
v.__ob__.push(self);
v.__cb__.push(function () {
self[name] = self[name];
self.__data(name);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class Component extends Element {
self.__ob.push(v);
v.__ob__.push(self);
v.__cb__.push(function() {
self[name] = self[name];
self.__data(name);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion web/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ var Component = function (_Element) {
self.__ob.push(v);
v.__ob__.push(self);
v.__cb__.push(function () {
self[name] = self[name];
self.__data(name);
});
}
}
Expand Down

0 comments on commit f860ddf

Please sign in to comment.