jinlin
2024-09-26 7ec9326ce00d08f9d957981f2edff6df26f24a28
web/public/SVGOrigin/Method-Draw-master/method-draw/lib/contextmenu.js
@@ -1,8 +1,8 @@
/**
 * Package: svgedit.contextmenu
 *
 *
 * Licensed under the Apache License, Version 2
 *
 *
 * Author: Adam Bender
 */
// Dependencies:
@@ -45,7 +45,7 @@
      $("#cmenu_canvas").append("<li class='separator'>");
    }
    var shortcut = menuItem.shortcut || "";
    $("#cmenu_canvas").append("<li class='disabled'><a href='#" + menuItem.id + "'>"
    $("#cmenu_canvas").append("<li class='disabled'><a href='#" + menuItem.id + "'>"
                  + menuItem.label + "<span class='shortcut'>"
                  + shortcut + "</span></a></li>");
  }
@@ -53,7 +53,7 @@
  var menuItemIsValid = function(menuItem) {
    return menuItem && menuItem.id && menuItem.label && menuItem.action && typeof menuItem.action == 'function';
  }
  // Defer injection to wait out initial menu processing. This probably goes away once all context
  // menu behavior is brought here.
  methodDraw.ready(function() {