/******************************************************************************* * jquery.ui-contextmenu.js plugin. * * jQuery plugin that provides a context menu (based on the jQueryUI menu widget). * * @see https://github.com/mar10/jquery-ui-contextmenu * * Copyright (c) 2013-2015, Martin Wendt (http://wwWendt.de). Licensed MIT. */ (function( factory ) { "use strict"; if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery", "jquery-ui/menu" ], factory ); } else { // Browser globals factory( jQuery ); } }(function( $ ) { "use strict"; var supportSelectstart = "onselectstart" in document.createElement("div"), match = $.ui.menu.version.match(/^(\d)\.(\d+)/), uiVersion = { major: parseInt(match[1], 10), minor: parseInt(match[2], 10) }, isLTE110 = ( uiVersion.major < 2 && uiVersion.minor < 11 ); $.widget("moogle.contextmenu", { version: "@VERSION", options: { addClass: "ui-contextmenu", // Add this class to the outer