Skip to content

Commit

Permalink
dummy comp.lookup for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed Jun 17, 2013
1 parent eb040cd commit cd8bf66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/ui/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,13 @@ _.extend(Component.prototype, {
rebuilt: function () {}
});

_.extend(Component.prototype, {
lookup: function (id) {
if (id === "foo")
return "David";
return null;
}
});

// Require ComponentClass.create(...) instead of
// new CompomentClass(...) because a factory method gives
Expand Down

0 comments on commit cd8bf66

Please sign in to comment.