ui-contextmenu
Advanced tools
Comparing version 1.8.1-0 to 1.8.1
{ | ||
"name": "ui-contextmenu", | ||
"description": "Turn a jQuery UI Menu widget into a contextmenu.", | ||
"version": "1.8.1-0", | ||
"version": "1.8.1", | ||
"main": [ | ||
@@ -6,0 +6,0 @@ "jquery.ui-contextmenu.js" |
@@ -1,4 +0,13 @@ | ||
# 1.8.1-0 / Unreleased | ||
# 1.8.2-0 / Unreleased | ||
* | ||
# 1.8.1 / 2014-12-21 | ||
* [FEATURE] Publish on npm Registry | ||
* [FEATURE] Publish on [cdnjs](https://cdnjs.com/libraries/jquery.ui-contextmenu) | ||
* [FEATURE] Include a source map file | ||
* [FEATURE] New option `addClass`, defaults to "ui-contextmenu" | ||
# 1.8.0 / 2014-11-23 | ||
* [FEATURE] #80 setEntry() supports creating nested menus | ||
@@ -10,2 +19,3 @@ * [FEATURE] #81 beforeOpen event accepts deferred as return value | ||
# 1.7.0 / 2014-09-09 | ||
* [FEATURE] AMD support (topolm). | ||
@@ -15,5 +25,7 @@ * [FEATURE] CDN support (http://www.jsdelivr.com/#!jquery.ui-contextmenu). | ||
# 1.6.1 / 2014-08-18 | ||
* [FEATURE] #27: New option `uiMenuOptions` allows to pass custom options to UI Menu Widget. | ||
# 1.5.0 / 2014-07-06 | ||
* [CHANGE] Use data-command="copy" instead of `<a href='...'>` to store command ids. | ||
@@ -23,2 +35,3 @@ * [FEATURE] Support jQuery UI 1.11. | ||
# 1.4.0 / 2014-06-22 | ||
* [FEATURE] Support bower. | ||
@@ -25,0 +38,0 @@ * [BUGFIX] #58: 'replaceMenu' in beforeOpen causing select event to lose ui.target |
@@ -30,2 +30,3 @@ /******************************************************************************* | ||
options: { | ||
addClass: "ui-contextmenu", // Add this class to the outer <ul> | ||
autoTrigger: true, // open menu on browser's `contextmenu` event | ||
@@ -115,3 +116,5 @@ delegate: null, // selector | ||
_createUiMenu: function(menuDef) { | ||
var ct; | ||
var ct, | ||
opts = this.options; | ||
// Remove temporary <ul> if any | ||
@@ -125,7 +128,9 @@ if (this.isOpen()) { | ||
} | ||
if (this.menuIsTemp) { | ||
this.$menu.remove(); // this will also destroy ui.menu | ||
} else if (this.$menu) { | ||
this.$menu.menu("destroy").hide(); | ||
this.$menu | ||
.menu("destroy") | ||
.removeClass(this.options.addClass) | ||
.hide(); | ||
} | ||
@@ -149,8 +154,8 @@ this.$menu = null; | ||
.hide() | ||
// .addClass("moogle-contextmenu") | ||
.addClass(opts.addClass) | ||
// Create a menu instance that delegates events to our widget | ||
.menu($.extend(true, {}, this.options.uiMenuOptions, { | ||
blur: $.proxy(this.options.blur, this), | ||
create: $.proxy(this.options.createMenu, this), | ||
focus: $.proxy(this.options.focus, this), | ||
.menu($.extend(true, {}, opts.uiMenuOptions, { | ||
blur: $.proxy(opts.blur, this), | ||
create: $.proxy(opts.createMenu, this), | ||
focus: $.proxy(opts.focus, this), | ||
select: $.proxy(function(event, ui) { | ||
@@ -161,6 +166,7 @@ // User selected a menu entry | ||
actionHandler = ui.item.data("actionHandler"); | ||
ui.cmd = ui.item.attr("data-command"); | ||
ui.target = $(this.currentTarget); | ||
// ignore clicks, if they only open a sub-menu | ||
if ( !isParent || !this.options.ignoreParentSelect) { | ||
if ( !isParent || !opts.ignoreParentSelect) { | ||
retval = this._trigger.call(this, "select", event, ui); | ||
@@ -167,0 +173,0 @@ if ( actionHandler ) { |
@@ -1,2 +0,4 @@ | ||
/*! jQuery UI context menu plugin - v1.8.0 - 2014-11-23 | https://github.com/mar10/jquery-ui-contextmenu | Copyright (c) 2014 Martin Wendt; Licensed MIT */ | ||
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";var b,c,d="onselectstart"in document.createElement("div");a.widget("moogle.contextmenu",{version:"@VERSION",options:{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 b,c,e,f=this.options;if(this.$headStyle=null,this.$menu=null,this.menuIsTemp=!1,this.currentTarget=null,f.preventSelect){e=(a(this.element).is(document)?a("body"):this.element).uniqueId().attr("id"),b="#"+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("<style class='moogle-contextmenu-style' />").prop("type","text/css").appendTo("head");try{this.$headStyle.html(b)}catch(g){this.$headStyle[0].styleSheet.cssText=b}d&&this.element.delegate(f.delegate,"selectstart"+this.eventNamespace,function(a){a.preventDefault()})}this._createUiMenu(f.menu),c="contextmenu"+this.eventNamespace,f.taphold&&(c+=" taphold"+this.eventNamespace),this.element.delegate(f.delegate,c,a.proxy(this._openMenu,this))},_destroy:function(){this.element.undelegate(this.eventNamespace),this._createUiMenu(null),this.$headStyle&&(this.$headStyle.remove(),this.$headStyle=null)},_createUiMenu:function(b){var c;this.isOpen()&&(c=this.currentTarget,this._closeMenu(!0),this.currentTarget=c),this.menuIsTemp?this.$menu.remove():this.$menu&&this.$menu.menu("destroy").hide(),this.$menu=null,this.menuIsTemp=!1,b&&(a.isArray(b)?(this.$menu=a.moogle.contextmenu.createMenuMarkup(b),this.menuIsTemp=!0):this.$menu="string"==typeof b?a(b):b,this.$menu.hide().menu(a.extend(!0,{},this.options.uiMenuOptions,{blur:a.proxy(this.options.blur,this),create:a.proxy(this.options.createMenu,this),focus:a.proxy(this.options.focus,this),select:a.proxy(function(b,c){var d,e=a.moogle.contextmenu.isMenu(c.item),f=c.item.data("actionHandler");c.cmd=c.item.attr("data-command"),c.target=a(this.currentTarget),e&&this.options.ignoreParentSelect||(d=this._trigger.call(this,"select",b,c),f&&(d=f.call(this,b,c)),d!==!1&&this._closeMenu.call(this),b.preventDefault())},this)})))},_openMenu:function(b,c){var d,e,f=this.options,g=f.position,h=this,i=!!b.isTrigger,j={menu:this.$menu,target:a(b.target),extraData:b.extraData,originalEvent:b,result:null};if(f.autoTrigger||i){if(b.preventDefault(),this.currentTarget=b.target,!c){if(d=this._trigger("beforeOpen",b,j),e=j.result&&a.isFunction(j.result.promise)?j.result:null,j.result=null,d===!1)return this.currentTarget=null,!1;if(e)return e.done(function(){h._openMenu(b,!0)}),this.currentTarget=null,!1;j.menu=this.$menu}a(document).bind("keydown"+this.eventNamespace,function(b){b.which===a.ui.keyCode.ESCAPE&&h._closeMenu()}).bind("mousedown"+this.eventNamespace+" touchstart"+this.eventNamespace,function(b){a(b.target).closest(".ui-menu-item").length||h._closeMenu()}),a.isFunction(g)&&(g=g(b,j)),g=a.extend({my:"left top",at:"left bottom",of:void 0===b.pageX?b.target:b,collision:"fit"},g),this.$menu.show().css({position:"absolute",left:0,top:0}).position(g).hide(),f.preventContextMenuForPopup&&this.$menu.bind("contextmenu"+this.eventNamespace,function(a){a.preventDefault()}),this._show(this.$menu,this.options.show,function(){h._trigger.call(h,"open",b,j)})}},_closeMenu:function(b){var c=this,d=b?!1:this.options.hide;a(document).unbind("mousedown"+this.eventNamespace).unbind("touchstart"+this.eventNamespace).unbind("keydown"+this.eventNamespace),this.$menu.unbind("contextmenu"+this.eventNamespace),c.currentTarget=null,this._hide(this.$menu,d,function(){c._trigger("close")})},_setOption:function(b,c){switch(b){case"menu":this.replaceMenu(c)}a.Widget.prototype._setOption.apply(this,arguments)},_getMenuEntry:function(a){return this.$menu.find("li[data-command="+a+"]")},close:function(){this.isOpen()&&this._closeMenu()},enableEntry:function(a,b){this._getMenuEntry(a).toggleClass("ui-state-disabled",b===!1)},getMenu:function(){return this.$menu},isOpen:function(){return!!this.$menu&&!!this.currentTarget},open:function(a,b){b=b||{};var c=jQuery.Event("contextmenu",{target:a.get(0),extraData:b});return this.element.trigger(c)},replaceMenu:function(a){this._createUiMenu(a)},setEntry:function(b,c){var d,e=this._getMenuEntry(b);"string"==typeof c?a.moogle.contextmenu.updateTitle(e,c):(e.empty(),c.cmd=c.cmd||b,a.moogle.contextmenu.createEntryMarkup(c,e),a.isArray(c.children)&&(d=a("<ul/>").appendTo(e),a.moogle.contextmenu.createMenuMarkup(c.children,d)),this.getMenu().menu("refresh"))},showEntry:function(a,b){this._getMenuEntry(a).toggle(b!==!1)}}),a.extend(a.moogle.contextmenu,{createMenuMarkup:function(b,c){var d,e,f,g;for(null==c&&(c=a("<ul class='ui-helper-hidden' />").appendTo("body")),d=0;d<b.length;d++)e=b[d],g=a("<li/>").appendTo(c),a.moogle.contextmenu.createEntryMarkup(e,g),a.isArray(e.children)&&(f=a("<ul/>").appendTo(g),a.moogle.contextmenu.createMenuMarkup(e.children,f));return c},replaceFirstTextNodeChild:function(a,b){a.contents().filter(function(){return 3===this.nodeType}).first().replaceWith(b)}}),b=a.ui.menu.version.match(/^(\d)\.(\d+)/),c={major:parseInt(b[1],10),minor:parseInt(b[2],10)},c.major<2&&c.minor<11?a.extend(a.moogle.contextmenu,{createEntryMarkup:function(b,c){var d=null;/[^\-\u2014\u2013\s]/.test(b.title)?(c.attr("data-command",b.cmd),d=a("<a/>",{html:""+b.title,href:"#"}).appendTo(c),a.isFunction(b.action)&&c.data("actionHandler",b.action),b.uiIcon&&d.append(a("<span class='ui-icon' />").addClass(b.uiIcon)),b.disabled&&c.addClass("ui-state-disabled"),a.isPlainObject(b.data)&&c.data(b.data)):c.text(b.title)},isMenu:function(a){return a.has(">a[aria-haspopup='true']").length>0},updateTitle:function(b,c){a.moogle.contextmenu.replaceFirstTextNodeChild(a("a",b),c)}}):a.extend(a.moogle.contextmenu,{createEntryMarkup:function(b,c){/[^\-\u2014\u2013\s]/.test(b.title)?(c.attr("data-command",b.cmd).html(""+b.title),a.isFunction(b.action)&&c.data("actionHandler",b.action),b.uiIcon&&c.append(a("<span class='ui-icon' />").addClass(b.uiIcon)),b.disabled&&c.addClass("ui-state-disabled"),a.isPlainObject(b.data)&&c.data(b.data)):c.text(b.title)},isMenu:function(a){return a.is("[aria-haspopup='true']")},updateTitle:function(b,c){a.moogle.contextmenu.replaceFirstTextNodeChild(b,c)}})}); | ||
/*! jQuery UI context menu plugin - v1.8.1 - 2014-12-21 | https://github.com/mar10/jquery-ui-contextmenu | Copyright (c) 2014 Martin Wendt; Licensed MIT */ | ||
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";var b,c,d="onselectstart"in document.createElement("div");a.widget("moogle.contextmenu",{version:"@VERSION",options:{addClass:"ui-contextmenu",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 b,c,e,f=this.options;if(this.$headStyle=null,this.$menu=null,this.menuIsTemp=!1,this.currentTarget=null,f.preventSelect){e=(a(this.element).is(document)?a("body"):this.element).uniqueId().attr("id"),b="#"+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("<style class='moogle-contextmenu-style' />").prop("type","text/css").appendTo("head");try{this.$headStyle.html(b)}catch(g){this.$headStyle[0].styleSheet.cssText=b}d&&this.element.delegate(f.delegate,"selectstart"+this.eventNamespace,function(a){a.preventDefault()})}this._createUiMenu(f.menu),c="contextmenu"+this.eventNamespace,f.taphold&&(c+=" taphold"+this.eventNamespace),this.element.delegate(f.delegate,c,a.proxy(this._openMenu,this))},_destroy:function(){this.element.undelegate(this.eventNamespace),this._createUiMenu(null),this.$headStyle&&(this.$headStyle.remove(),this.$headStyle=null)},_createUiMenu:function(b){var c,d=this.options;this.isOpen()&&(c=this.currentTarget,this._closeMenu(!0),this.currentTarget=c),this.menuIsTemp?this.$menu.remove():this.$menu&&this.$menu.menu("destroy").removeClass(this.options.addClass).hide(),this.$menu=null,this.menuIsTemp=!1,b&&(a.isArray(b)?(this.$menu=a.moogle.contextmenu.createMenuMarkup(b),this.menuIsTemp=!0):this.$menu="string"==typeof b?a(b):b,this.$menu.hide().addClass(d.addClass).menu(a.extend(!0,{},d.uiMenuOptions,{blur:a.proxy(d.blur,this),create:a.proxy(d.createMenu,this),focus:a.proxy(d.focus,this),select:a.proxy(function(b,c){var e,f=a.moogle.contextmenu.isMenu(c.item),g=c.item.data("actionHandler");c.cmd=c.item.attr("data-command"),c.target=a(this.currentTarget),f&&d.ignoreParentSelect||(e=this._trigger.call(this,"select",b,c),g&&(e=g.call(this,b,c)),e!==!1&&this._closeMenu.call(this),b.preventDefault())},this)})))},_openMenu:function(b,c){var d,e,f=this.options,g=f.position,h=this,i=!!b.isTrigger,j={menu:this.$menu,target:a(b.target),extraData:b.extraData,originalEvent:b,result:null};if(f.autoTrigger||i){if(b.preventDefault(),this.currentTarget=b.target,!c){if(d=this._trigger("beforeOpen",b,j),e=j.result&&a.isFunction(j.result.promise)?j.result:null,j.result=null,d===!1)return this.currentTarget=null,!1;if(e)return e.done(function(){h._openMenu(b,!0)}),this.currentTarget=null,!1;j.menu=this.$menu}a(document).bind("keydown"+this.eventNamespace,function(b){b.which===a.ui.keyCode.ESCAPE&&h._closeMenu()}).bind("mousedown"+this.eventNamespace+" touchstart"+this.eventNamespace,function(b){a(b.target).closest(".ui-menu-item").length||h._closeMenu()}),a.isFunction(g)&&(g=g(b,j)),g=a.extend({my:"left top",at:"left bottom",of:void 0===b.pageX?b.target:b,collision:"fit"},g),this.$menu.show().css({position:"absolute",left:0,top:0}).position(g).hide(),f.preventContextMenuForPopup&&this.$menu.bind("contextmenu"+this.eventNamespace,function(a){a.preventDefault()}),this._show(this.$menu,this.options.show,function(){h._trigger.call(h,"open",b,j)})}},_closeMenu:function(b){var c=this,d=b?!1:this.options.hide;a(document).unbind("mousedown"+this.eventNamespace).unbind("touchstart"+this.eventNamespace).unbind("keydown"+this.eventNamespace),this.$menu.unbind("contextmenu"+this.eventNamespace),c.currentTarget=null,this._hide(this.$menu,d,function(){c._trigger("close")})},_setOption:function(b,c){switch(b){case"menu":this.replaceMenu(c)}a.Widget.prototype._setOption.apply(this,arguments)},_getMenuEntry:function(a){return this.$menu.find("li[data-command="+a+"]")},close:function(){this.isOpen()&&this._closeMenu()},enableEntry:function(a,b){this._getMenuEntry(a).toggleClass("ui-state-disabled",b===!1)},getMenu:function(){return this.$menu},isOpen:function(){return!!this.$menu&&!!this.currentTarget},open:function(a,b){b=b||{};var c=jQuery.Event("contextmenu",{target:a.get(0),extraData:b});return this.element.trigger(c)},replaceMenu:function(a){this._createUiMenu(a)},setEntry:function(b,c){var d,e=this._getMenuEntry(b);"string"==typeof c?a.moogle.contextmenu.updateTitle(e,c):(e.empty(),c.cmd=c.cmd||b,a.moogle.contextmenu.createEntryMarkup(c,e),a.isArray(c.children)&&(d=a("<ul/>").appendTo(e),a.moogle.contextmenu.createMenuMarkup(c.children,d)),this.getMenu().menu("refresh"))},showEntry:function(a,b){this._getMenuEntry(a).toggle(b!==!1)}}),a.extend(a.moogle.contextmenu,{createMenuMarkup:function(b,c){var d,e,f,g;for(null==c&&(c=a("<ul class='ui-helper-hidden' />").appendTo("body")),d=0;d<b.length;d++)e=b[d],g=a("<li/>").appendTo(c),a.moogle.contextmenu.createEntryMarkup(e,g),a.isArray(e.children)&&(f=a("<ul/>").appendTo(g),a.moogle.contextmenu.createMenuMarkup(e.children,f));return c},replaceFirstTextNodeChild:function(a,b){a.contents().filter(function(){return 3===this.nodeType}).first().replaceWith(b)}}),b=a.ui.menu.version.match(/^(\d)\.(\d+)/),c={major:parseInt(b[1],10),minor:parseInt(b[2],10)},c.major<2&&c.minor<11?a.extend(a.moogle.contextmenu,{createEntryMarkup:function(b,c){var d=null;/[^\-\u2014\u2013\s]/.test(b.title)?(c.attr("data-command",b.cmd),d=a("<a/>",{html:""+b.title,href:"#"}).appendTo(c),a.isFunction(b.action)&&c.data("actionHandler",b.action),b.uiIcon&&d.append(a("<span class='ui-icon' />").addClass(b.uiIcon)),b.disabled&&c.addClass("ui-state-disabled"),a.isPlainObject(b.data)&&c.data(b.data)):c.text(b.title)},isMenu:function(a){return a.has(">a[aria-haspopup='true']").length>0},updateTitle:function(b,c){a.moogle.contextmenu.replaceFirstTextNodeChild(a("a",b),c)}}):a.extend(a.moogle.contextmenu,{createEntryMarkup:function(b,c){/[^\-\u2014\u2013\s]/.test(b.title)?(c.attr("data-command",b.cmd).html(""+b.title),a.isFunction(b.action)&&c.data("actionHandler",b.action),b.uiIcon&&c.append(a("<span class='ui-icon' />").addClass(b.uiIcon)),b.disabled&&c.addClass("ui-state-disabled"),a.isPlainObject(b.data)&&c.data(b.data)):c.text(b.title)},isMenu:function(a){return a.is("[aria-haspopup='true']")},updateTitle:function(b,c){a.moogle.contextmenu.replaceFirstTextNodeChild(b,c)}})}); | ||
//# sourceMappingURL=jquery.ui-contextmenu.min.js.map |
{ | ||
"name": "ui-contextmenu", | ||
"version": "1.8.1-0", | ||
"filename": "jquery.ui-contextmenu.min.js", | ||
"version": "1.8.1", | ||
"title": "jQuery UI context menu plugin", | ||
@@ -46,3 +47,3 @@ "description": "Turn a jQuery UI Menu widget into a contextmenu.", | ||
"grunt-contrib-qunit": "~0.2.0", | ||
"grunt-contrib-uglify": "~0.2.0", | ||
"grunt-contrib-uglify": "^0.6.0", | ||
"grunt-exec": "~0.4.0", | ||
@@ -56,3 +57,14 @@ "grunt-saucelabs": "~8.1.0", | ||
"test": "grunt ci --verbose" | ||
} | ||
}, | ||
"npmName": "ui-contextmenu", | ||
"npmFileMap": [ | ||
{ | ||
"basePath": "/", | ||
"files": [ | ||
"jquery.ui-contextmenu.js", | ||
"jquery.ui-contextmenu.min.js", | ||
"jquery.ui-contextmenu.min.js.map" | ||
] | ||
} | ||
] | ||
} |
@@ -15,4 +15,6 @@ # jquery.ui-contextmenu [](https://github.com/mar10/jquery-ui-contextmenu/releases/latest) [](https://travis-ci.org/mar10/jquery-ui-contextmenu) [](https://saucelabs.com/u/sauce-contextmenu) | ||
The latest release is available for download at | ||
[The jQuery Plugin Registry](http://plugins.jquery.com/ui-contextmenu/). | ||
The latest release is available at [npm Registry](https://www.npmjs.org/package/ui-contextmenu): | ||
```shell | ||
$ npm install ui-contextmenu | ||
``` | ||
@@ -35,3 +37,5 @@ [](https://github.com/mar10/jquery-ui-contextmenu/releases/latest) | ||
* One of the ThemeRoller CSS themes or a custom one | ||
* jquery.ui-contextmenu.js (also [available as CDN](http://www.jsdelivr.com/#!jquery.ui-contextmenu)) | ||
* jquery.ui-contextmenu.js (also available as CDN on | ||
[jsdelivr](http://www.jsdelivr.com/#!jquery.ui-contextmenu) | ||
or [cdnjs](https://cdnjs.com/libraries/jquery.ui-contextmenu)) | ||
@@ -180,2 +184,8 @@ ```html | ||
<dl> | ||
<dt>addClass</dt> | ||
<dd> | ||
Type: <code>String</code>, | ||
default: <code>"ui-contextmenu"</code><br> | ||
This class is added to the outer ul element. | ||
</dd> | ||
<dt>autoTrigger</dt> | ||
@@ -197,3 +207,3 @@ <dd> | ||
Type: <code> Boolean | Number | String | Object</code>, | ||
default: <code>{ effect: "fadeOut", duration: "fast"}</code><br> | ||
default: <code>{ effect: "fadeOut", duration: "fast" }</code><br> | ||
Effect applied when hiding the popup.<br> | ||
@@ -200,0 +210,0 @@ See <a href="http://api.jqueryui.com/jQuery.widget/#option-show">sample</a> |
@@ -182,3 +182,4 @@ // jQUnit defines: | ||
equal( $ctx.length, 1, "widget created"); | ||
// ok($("#sampleMenu").hasClass( "moogle-contextmenu" ), "Class set to menu definition"); | ||
// equal( $("#sampleMenu").hasClass( "ui-contextmenu" ), true, | ||
// "Class set to menu definition"); | ||
equal( $("head style.moogle-contextmenu-style").length, 1, "global stylesheet created"); | ||
@@ -189,4 +190,4 @@ | ||
equal( $(":moogle-contextmenu").length, 0, "widget destroyed"); | ||
// ok( !$("#sampleMenu").hasClass("moogle-contextmenu"), | ||
// "Class removed from menu definition"); | ||
// equal( $("#sampleMenu").hasClass("ui-contextmenu"), false, | ||
// "Class removed from menu definition"); | ||
equal( $("head style.moogle-contextmenu-style").length, 0, "global stylesheet removed"); | ||
@@ -213,3 +214,3 @@ | ||
expect(18); | ||
expect(19); | ||
@@ -243,2 +244,4 @@ $("#container").contextmenu({ | ||
"open: Menu is visible" ); | ||
ok( $popup.hasClass("ui-contextmenu"), | ||
"Class removed from menu definition"); | ||
ok( entry($popup, 2).hasClass("ui-state-disabled"), | ||
@@ -245,0 +248,0 @@ "open: Entry is disabled" ); |
{ | ||
"name": "ui-contextmenu", | ||
"version": "1.8.1-0", | ||
"version": "1.8.1", | ||
"title": "jQuery UI context menu plugin", | ||
@@ -5,0 +5,0 @@ "description": "Turn a jQuery UI Menu widget into a contextmenu.", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
314153
62
1549
0
462