Skip to content

Commit a27f2b0

Browse files
committed
Fixed custom position sample.
1 parent 6e7dced commit a27f2b0

6 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# 0.5.0 / Unreleased
1+
# 0.6.0 / Unreleased
2+
3+
* [BUGFIX] Fixed custom position sample.
4+
5+
# 0.5.0 / 2013-06-02
26

37
* [CHANGE] Changed widget namespace from 'ui' to 'moogle'.
48
* [CHANGE] Default position is now at click event.pageX/Y.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,8 @@ structure (see [jQueryUI menu] for details):
137137
Also a function may be specified, to recalculate position every time:<br>
138138
<pre>
139139
$("#container").contextmenu({
140-
// position: {my: "left bottom", at: "right top"},
141140
position: function(event, ui){
142-
return {my: "left top", at: "center", of: event};
141+
return {my: "left top", at: "left bottom", of: ui.target};
143142
}, ...</pre>
144143
</dd>
145144
<dt>preventSelect</dt>

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
menu: "#options",
115115
// position: {my: "left top", at: "left bottom"},
116116
position: function(event, ui){
117-
return {my: "left top", at: "left.bottom", of: event.target};
117+
return {my: "left top", at: "left bottom", of: ui.target};
118118
},
119119
preventSelect: true,
120120
taphold: true,

jquery.ui-contextmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
$.widget("moogle.contextmenu", {
20-
version: "0.5.0",
20+
version: "0.6.0",
2121
options: {
2222
delegate: "[data-menu]", // selector
2323
hide: { effect: "fadeOut", duration: "fast"},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ui-contextmenu",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44

55
"title": "jQuery UI context menu plugin",
66
"description": "Turn a jQuery UI Menu widget into a context menu.",

ui-contextmenu.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ui-contextmenu",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44

55
"title": "jQuery UI context menu plugin",
66
"description": "Turn a jQuery UI Menu widget into a context menu.",

0 commit comments

Comments
 (0)