Skip to content

Commit

Permalink
Update update-widget.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Jun 3, 2015
1 parent d45196f commit 9dde0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vdom/update-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = updateWidget

function updateWidget(a, b) {
if (isWidget(a) && isWidget(b)) {
if ("name" in a && "name" in b) {
if ("id" in a && "id" in b) {
return a.id === b.id
} else {
return a.init === b.init
Expand Down

0 comments on commit 9dde0a1

Please sign in to comment.