Skip to content

Commit

Permalink
require data
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Aug 19, 2018
1 parent 67b32ae commit 9342602
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/moon/src/component/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ const emit = function(type, data) {
};

export const component = (name, data) => {
// Default
if (data === undefined) {
data = {};
}

// View
let view = data.view;
if (typeof view === "string") {
Expand Down

0 comments on commit 9342602

Please sign in to comment.