- Linting (ESLint): Finish
- Fix: Globals (x, y) in `mouseMove` - Fix: Global (element, d_attr->dAttr) in `mouseDown` - Fix: Avoid `drawnPath` not defined error - Docs: sp.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable no-var, eqeqeq */
|
||||
/* eslint-disable no-var */
|
||||
/* globals $, svgEditor */
|
||||
/**
|
||||
* Package: svgedit.contextmenu
|
||||
@@ -17,7 +17,7 @@ if (!svgedit.contextmenu) {
|
||||
}
|
||||
self.contextMenuExtensions = {};
|
||||
var menuItemIsValid = function (menuItem) {
|
||||
return menuItem && menuItem.id && menuItem.label && menuItem.action && typeof menuItem.action == 'function';
|
||||
return menuItem && menuItem.id && menuItem.label && menuItem.action && typeof menuItem.action === 'function';
|
||||
};
|
||||
var addContextMenuItem = function (menuItem) {
|
||||
// menuItem: {id, label, shortcut, action}
|
||||
|
||||
Reference in New Issue
Block a user