diff --git a/bower.json b/bower.json index 8278ad6..93abd24 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "ui-contextmenu", "description": "Turn a jQuery UI Menu widget into a contextmenu.", - "version": "1.17.1-0", + "version": "1.18.0", "main": [ "jquery.ui-contextmenu.js" ], diff --git a/jquery.ui-contextmenu.js b/jquery.ui-contextmenu.js index 46b06ca..6ce1cd0 100644 --- a/jquery.ui-contextmenu.js +++ b/jquery.ui-contextmenu.js @@ -387,9 +387,9 @@ $.widget("moogle.contextmenu", { return this._getMenuEntry(cmd); }, /** Return ui-menu entry wrapper as jQuery object. - UI 1.10: this is the tag inside the LI - UI 1.11: this is the LI istself - UI 1.12: this is the
tag inside the LI + UI 1.10: this is the tag inside the LI + UI 1.11: this is the LI istself + UI 1.12: this is the
tag inside the LI */ getEntryWrapper: function(cmd) { return this._getMenuEntry(cmd).find(">[role=menuitem]").addBack("[role=menuitem]"); diff --git a/jquery.ui-contextmenu.min.js b/jquery.ui-contextmenu.min.js index 17a5cc2..b27ef40 100644 --- a/jquery.ui-contextmenu.min.js +++ b/jquery.ui-contextmenu.min.js @@ -1,4 +1,4 @@ -/*! jQuery UI context menu plugin - v1.17.0 - 2017-04-17 | https://github.com/mar10/jquery-ui-contextmenu | Copyright (c) 2013 -2017 Martin Wendt; Licensed MIT */ +/*! jQuery UI context menu plugin - v1.18.0 - 2017-08-26 | https://github.com/mar10/jquery-ui-contextmenu | Copyright (c) 2013 -2017 Martin Wendt; Licensed MIT */ -!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery-ui/ui/widgets/menu"],a):a(jQuery)}(function(a){"use strict";var b="onselectstart"in document.createElement("div"),c=a.ui.menu.version.match(/^(\d)\.(\d+)/),d={major:parseInt(c[1],10),minor:parseInt(c[2],10)},e=d.major<2&&d.minor<=10,f=d.major<2&&d.minor<=11;a.widget("moogle.contextmenu",{version:"1.17.0",options:{addClass:"ui-contextmenu",closeOnWindowBlur:!0,autoFocus:!1,autoTrigger:!0,delegate:null,hide:{effect:"fadeOut",duration:"fast"},ignoreParentSelect:!0,menu:null,position:null,preventContextMenuForPopup:!1,preventSelect:!1,show:{effect:"slideDown",duration:"fast"},taphold:!1,uiMenuOptions:{},beforeOpen:a.noop,blur:a.noop,close:a.noop,create:a.noop,createMenu:a.noop,focus:a.noop,open:a.noop,select:a.noop},_create:function(){var c,d,e,f=this.options;if(this.$headStyle=null,this.$menu=null,this.menuIsTemp=!1,this.currentTarget=null,this.extraData={},this.previousFocus=null,null==f.delegate&&a.error("ui-contextmenu: Missing required option `delegate`."),f.preventSelect){e=(a(this.element).is(document)?a("body"):this.element).uniqueId().attr("id"),c="#"+e+" "+f.delegate+" { -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }",this.$headStyle=a("