diff --git a/packages/ui/component.js b/packages/ui/component.js index e697548d993..067c472d393 100644 --- a/packages/ui/component.js +++ b/packages/ui/component.js @@ -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