Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release-1.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jun 28, 2016
2 parents f714127 + 15a9d1e commit 588591d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<a name="1.0.4"></a>
## 1.0.4 (2016-06-28)


### Bug Fixes

* **menu:** fix the way manager pass data to menu([dbe219b](https://github.com/poppinss/docketjs/commit/dbe219b))


<a name="1.0.3"></a>
## 1.0.3 (2016-06-28)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docketjs",
"version": "1.0.3",
"version": "1.0.4",
"description": "DocketJs is a battery included Markdown to HTML converter for Node.js. It has everything you need to successfully convert a bunch of markdown files to HTML and generate toc and a menu file.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class DocketManager extends EventEmitter {
*/
_addMenuChild (meta) {
if (this.menu && typeof (this.menu.addChild) === 'function') {
this.menu.addChild(meta.title, meta.permalink, meta.categories, meta.weight)
this.menu.addChild(meta)
return
}
logger.warn('Cannot write doc meta to menu file, since you have not injected the correct menu instance')
Expand Down

0 comments on commit 588591d

Please sign in to comment.