- Remove carriage returns; fixes #37
- Remove extra spaces from svgcanvas, embedapi
This commit is contained in:
@@ -45,7 +45,7 @@ function getCallbackSetter (d) {
|
|||||||
return function () {
|
return function () {
|
||||||
var t = this, // New callback
|
var t = this, // New callback
|
||||||
args = [].slice.call(arguments),
|
args = [].slice.call(arguments),
|
||||||
cbid = t.send(d, args, function () {}); // The callback (currently it's nothing, but will be set later)
|
cbid = t.send(d, args, function () {}); // The callback (currently it's nothing, but will be set later)
|
||||||
|
|
||||||
return function (newcallback) {
|
return function (newcallback) {
|
||||||
t.callbacks[cbid] = newcallback; // Set callback
|
t.callbacks[cbid] = newcallback; // Set callback
|
||||||
|
|||||||
@@ -4146,7 +4146,7 @@ var uniquifyElems = this.uniquifyElems = function (g) {
|
|||||||
//
|
//
|
||||||
// Problem #1: if svg_1 gets renamed, we do not update the polyline's se:connector attribute
|
// Problem #1: if svg_1 gets renamed, we do not update the polyline's se:connector attribute
|
||||||
// Problem #2: if the polyline svg_7 gets renamed, we do not update the marker id nor the polyline's marker-end attribute
|
// Problem #2: if the polyline svg_7 gets renamed, we do not update the marker id nor the polyline's marker-end attribute
|
||||||
var refElems = ['filter', 'linearGradient', 'pattern', 'radialGradient', 'symbol', 'textPath', 'use'];
|
var refElems = ['filter', 'linearGradient', 'pattern', 'radialGradient', 'symbol', 'textPath', 'use'];
|
||||||
|
|
||||||
svgedit.utilities.walkTree(g, function (n) {
|
svgedit.utilities.walkTree(g, function (n) {
|
||||||
// if it's an element node
|
// if it's an element node
|
||||||
|
|||||||
Reference in New Issue
Block a user