Changed code style as requested in svgedit pull request #208.

master
KB Jørgensen 2018-01-26 14:59:39 +01:00
parent 07803fd1db
commit d3ed6cbb8c
1 changed files with 2 additions and 2 deletions

View File

@ -3817,7 +3817,7 @@ this.svgToString = function(elem, indent) {
var el = this;
// for some elements have no attribute
var uri = this.namespaceURI;
if(uri && !nsuris[uri] && nsMap[uri] && nsMap[uri] !== 'xmlns' && nsMap[uri] !== 'xml' ) {
if (uri && !nsuris[uri] && nsMap[uri] && nsMap[uri] !== 'xmlns' && nsMap[uri] !== 'xml' ) {
nsuris[uri] = true;
out.push(' xmlns:' + nsMap[uri] + '="' + uri +'"');
}
@ -4596,7 +4596,7 @@ this.setSvgString = function(xmlString, preventUndo) {
svgedit.path.clearData();
svgroot.appendChild(selectorManager.selectorParentGroup);
if(!preventUndo) addCommandToHistory(batchCmd);
if (!preventUndo) addCommandToHistory(batchCmd);
call('changed', [svgcontent]);
} catch(e) {
console.log(e);