- Linting (ESLint): Finish extensions and most files in editor/; unfinished: editor/svg-editor.js, editor/svgcanvas.js

- Linting (ESLint): Fix ignore file paths
- History `elem` fix
This commit is contained in:
Brett Zamir
2018-05-16 08:53:27 +08:00
parent 5bcbb948eb
commit 340915be4e
51 changed files with 12031 additions and 12108 deletions

View File

@@ -1,4 +1,5 @@
/*globals $, svgedit*/
/* eslint-disable no-var */
/* globals $, svgedit:true */
/**
*
* Licensed under the MIT License
@@ -19,10 +20,11 @@ svgedit = {
};
// return the svgedit.NS with key values switched and lowercase
svgedit.getReverseNS = function() {'use strict';
svgedit.getReverseNS = function () {
'use strict';
var reverseNS = {};
$.each(this.NS, function(name, URI) {
$.each(this.NS, function (name, URI) {
reverseNS[URI] = name.toLowerCase();
});
return reverseNS;
};
};