Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 6, 2019
1 parent dfe48dc commit 254411b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/moon/dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,8 @@

if (onDestroy !== undefined) {
data.events.destroy.push(onDestroy);
} // Initialize the component constructor with the given data.
} // Initialize the component constructor with the given data, given view, and
// default methods.


function MoonComponent() {
Expand Down
4 changes: 3 additions & 1 deletion packages/moon/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,12 @@ export default function Moon(data) {
data.events.destroy.push(onDestroy);
}

// Initialize the component constructor with the given data.
// Initialize the component constructor with the given data, given view, and
// default methods.
function MoonComponent() {
this.view = view();
}

MoonComponent.prototype = data;
MoonComponent.prototype.create = create;
MoonComponent.prototype.update = update;
Expand Down

0 comments on commit 254411b

Please sign in to comment.