From a843d07fc4403b51bc2404a06d125a829d9c1bcd Mon Sep 17 00:00:00 2001 From: Vasiliy Shilov Date: Mon, 30 Oct 2017 12:00:05 +0300 Subject: [PATCH] fix jsdoc comment --- README.md | 6 +++--- bemcn.js | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8eacde5..5499f1f 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ bcn('block')('element')('modifier'); ## Functions
-
bemcn(ep, mp, wbd)b
+
bemcn(ep, mp, [wbd])b

BEM class names

b(v)e
@@ -87,7 +87,7 @@ bcn('block')('element')('modifier'); -## bemcn(ep, mp, wbd) ⇒ [b](#b) +## bemcn(ep, mp, [wbd]) ⇒ [b](#b) BEM class names **Kind**: global function @@ -97,7 +97,7 @@ BEM class names | --- | --- | --- | | ep | string | element prefix | | mp | string | modifier prefix | -| wbd | string | with base class name (default value) | +| [wbd] | boolean | with base class name (default value) | diff --git a/bemcn.js b/bemcn.js index 00d494c..cbe3e4d 100644 --- a/bemcn.js +++ b/bemcn.js @@ -4,7 +4,7 @@ * @description BEM class names * @param {string} ep - element prefix * @param {string} mp - modifier prefix - * @param {string} wbd - with base class name (default value) + * @param {boolean=} wbd - with base class name (default value) * @return {b} - block creator */ function bemcn(ep, mp, wbd) { diff --git a/package.json b/package.json index 11fe307..6d6479e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bemcn", - "version": "1.0.2", + "version": "1.0.3", "description": "bemcn is an utility for creating BEM class names.", "main": "bemcn.js", "scripts": {