Permalink
Browse files

version bump

  • Loading branch information...
1 parent 3b3c743 commit 6b21e9517107a20189ac3aa38031f0752540d8e3 @rodneyrehm rodneyrehm committed Mar 10, 2012
Showing with 13 additions and 4 deletions.
  1. +4 −0 README.md
  2. +4 −0 demo.html
  3. +2 −1 docs.html
  4. +1 −1 package.json
  5. +1 −1 src/jquery.contextMenu.css
  6. +1 −1 src/jquery.contextMenu.js
View
@@ -103,6 +103,10 @@ $.contextMenu is published under the [MIT license](http://www.opensource.org/lic
## Changelog ##
+### 1.5.9 ###
+
+* If build() did not return any items, an empty menu was shown (Issue #33)
+
### 1.5.8 ###
* Capturing Page Up and Page Down keys to ignore like space (Issue #30)
View
@@ -68,6 +68,10 @@ <h3 id="code">Example code: Simple Context Menu</h3>
"quit": {name: "Quit", icon: "quit"}
}
});
+
+ $('.context-menu-one').on('click', function(e){
+ console.log('clicked', this);
+ })
});
</script>
View
@@ -176,7 +176,8 @@ <h3 id="options">options (at registration)</h3>
It is executed without context (so this won't refer to anything useful).</p>
<p>If the <em>build</em> callback is found at registration, the menu is not built right away. The menu creation is delayed to the point where the menu is actually called to show. Dynamic menus don't stay in the DOM. After a menu created with <em>build</em> is hidden, its DOM-footprint is destroyed.</p>
<p>With <em>build</em>, only the options <a href="#options-selector">selector</a> and <a href="#options-selector">ignoreRightClick</a> may be specified in the
- options object. All other options need to be returned from the <em>build</em> callback.
+ options object. All other options need to be returned from the <em>build</em> callback.</p>
+ <p>the <em>build</em> callback may return a boolean <em>false</em> to signal contextMenu to not display a context menu</p>
<pre class="prettyprint lang-js">{selector: ".awesome-menu",
build: function($trigger, e){
return {
View
@@ -1,6 +1,6 @@
{
"name": "jQuery contextMenu",
- "version": "1.5.8",
+ "version": "1.5.9",
"title": "jQuery.contextMenu()",
"author": {
"name": "Rodney Rehm",
@@ -1,7 +1,7 @@
/*
* jQuery contextMenu - Plugin for simple contextMenu handling
*
- * Version: 1.5.2
+ * Version: 1.5.9
*
* Authors: Rodney Rehm, Addy Osmani (patches for FF)
* Web: http://medialize.github.com/jQuery-contextMenu/
@@ -1,7 +1,7 @@
/*
* jQuery contextMenu - Plugin for simple contextMenu handling
*
- * Version: 1.5.8
+ * Version: 1.5.9
*
* Authors: Rodney Rehm, Addy Osmani (patches for FF)
* Web: http://medialize.github.com/jQuery-contextMenu/

0 comments on commit 6b21e95

Please sign in to comment.