mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
dummy comp.lookup for testing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user