- 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:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user