dummy comp.lookup for testing

This commit is contained in:
David Greenspan
2013-06-17 11:03:49 -07:00
parent eb040cdff5
commit cd8bf66822

View File

@@ -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