Skip to content

Commit 2dc866d

Browse files
committed
Update readme and documentation
1 parent 20c88c8 commit 2dc866d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ Font-Awesome icons used from [encharm/Font-Awesome-SVG-PNG](https://github.com/e
103103

104104
## Changelog ##
105105

106+
### Unreleased ###
107+
108+
* Fixed a swith to use the correct type for separators (thanks @RareDevil)
109+
106110
### 2.0.1 (December 3rd 2015) ###
107111

108112
* Remove executable bit from jquery.contextMenu.js (thanks @jacknagel)

documentation/docs/items.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ currentMenu: items
2929

3030

3131

32-
The items map contains the commands to list in the menu. Each command has a unique key identifying an item object. The value may either be an item (properties explained below), or a string (which will insert a separator, disregarding the string's content).
32+
The items map contains the commands to list in the menu. Each command has a unique key identifying an item object. The value may either be an item (properties explained below), or a string (which will insert a separator, disregarding the string's content). It is also possible to define a seperator the same as an item, and use the `type`:`cm_seperator` to define it.
3333

3434
```javascript
3535
var items = {
3636
firstCommand: itemOptions,
3737
separator1: "-----",
38+
separator2: { "type": "cm_seperator" }
3839
command2: itemOptions
3940
}
4041
```

0 commit comments

Comments
 (0)