Skip to content

Commit 29f5ad0

Browse files
committed
Fix deprecation warnings
1 parent 5c83af9 commit 29f5ad0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 1.18.1 / Unreleased
22

3-
*
3+
* [BUGFIX] Fix deprecation warnings when menu with `title` callback is opened
44

55
# 1.18.0 / 2017-08-26
66

jquery.ui-contextmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ $.widget("moogle.contextmenu", {
368368
fn = $entry.data("titleHandler"),
369369
res = fn ? fn({ type: "title" }, ui) : null;
370370
if ( res != null ) {
371-
self.setEntry(ui.cmd, "" + res);
371+
self.setTitle(ui.cmd, "" + res);
372372
}
373373
// Evaluate `tooltip()` callback
374374
fn = $entry.data("tooltipHandler"),

0 commit comments

Comments
 (0)