|
|
@@ -51,7 +51,7 @@ ExampleStore.prototype.getRepoMenu = function(path) {
|
|
|
ExampleStore.prototype.getExampleMenu = function(path) {
|
|
|
const repo = _.find(this.repos, { path });
|
|
|
return repo.examples.map(
|
|
|
- ({ title, slug }) => ({ title, href: repo.path + '/' + slug })
|
|
|
+ ({ title, slug }) => ({ title, slug: repo.path + '/' + slug })
|
|
|
);
|
|
|
};
|
|
|
|
|
|
@@ -64,8 +64,8 @@ ExampleStore.prototype.getMenu = function(path) {
|
|
|
}, '') + '</ul>';
|
|
|
}
|
|
|
|
|
|
-ExampleStore.prototype.repoExists = function(path) {
|
|
|
- return _.find(this.repos, { path }) !== undefined;
|
|
|
+ExampleStore.prototype.getRepo = function(path) {
|
|
|
+ return _.find(this.repos, { path });
|
|
|
}
|
|
|
|
|
|
module.exports = ExampleStore;
|