Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Don't set hasOwnExamples to true if a component's examples array only…
Browse files Browse the repository at this point in the history
… contains inherited examples.
  • Loading branch information
rgrove committed Aug 3, 2011
1 parent 53eb89c commit e370e0c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions HISTORY.md
@@ -1,6 +1,13 @@
Selleck History Selleck History
=============== ===============


0.1.6 (git)
-----------

* Fixed a bug that caused the hasOwnExamples property to be set to true even if
a component only had inherited examples.


0.1.5 (2011-07-29) 0.1.5 (2011-07-29)
------------------ ------------------


Expand Down
4 changes: 3 additions & 1 deletion bin/selleck
Expand Up @@ -230,7 +230,9 @@ if (options.server) {
if (err) { throw err; } if (err) { throw err; }


if (result.meta.examples) { if (result.meta.examples) {
result.meta.hasOwnExamples = true; result.meta.hasOwnExamples = result.meta.examples.some(function (example) {
return !example.inherited;
});
} }


components[result.meta.name] = result; components[result.meta.name] = result;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name" : "selleck", "name" : "selleck",
"description": "Generator for YUI's Handlebars-based user documentation.", "description": "Generator for YUI's Handlebars-based user documentation.",


"version" : "0.1.5", "version" : "0.1.6-git",
"homepage" : "https://github.com/rgrove/selleck/", "homepage" : "https://github.com/rgrove/selleck/",
"author" : "Ryan Grove <ryan@wonko.com> (http://wonko.com/)", "author" : "Ryan Grove <ryan@wonko.com> (http://wonko.com/)",
"copyright" : "Copyright (c) 2011 Yahoo! Inc. All rights reserved.", "copyright" : "Copyright (c) 2011 Yahoo! Inc. All rights reserved.",
Expand Down

0 comments on commit e370e0c

Please sign in to comment.