Commit d936e191 by Tomas Alabes

Merging TheCloudlessSky-prevent-multiple-svg-title

parent e3d40fc6
......@@ -5063,7 +5063,6 @@
var isPointInside = false;
this.forEach(function (el) {
if (el.isPointInside(x, y)) {
console.log('runned');
isPointInside = true;
return false; // stop loop
}
......
......@@ -323,10 +323,17 @@ window.Raphael && window.Raphael.svg && function(R) {
o.blur(value);
break;
case "title":
var hl = $("title");
var title = node.getElementsByTagName("title");
// Use the existing <title>.
if (title.length && (title = title[0])) {
title.firstChild.nodeValue = value;
} else {
title = $("title");
var val = R._g.doc.createTextNode(value);
hl.appendChild(val);
node.appendChild(hl);
title.appendChild(val);
node.appendChild(title);
}
break;
case "href":
case "target":
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -5442,7 +5442,6 @@
var isPointInside = false;
this.forEach(function (el) {
if (el.isPointInside(x, y)) {
console.log('runned');
isPointInside = true;
return false; // stop loop
}
......@@ -6109,10 +6108,17 @@
o.blur(value);
break;
case "title":
var hl = $("title");
var title = node.getElementsByTagName("title");
// Use the existing <title>.
if (title.length && (title = title[0])) {
title.firstChild.nodeValue = value;
} else {
title = $("title");
var val = R._g.doc.createTextNode(value);
hl.appendChild(val);
node.appendChild(hl);
title.appendChild(val);
node.appendChild(title);
}
break;
case "href":
case "target":
......@@ -7750,7 +7756,6 @@
}
return b;
};
elproto._getBBox = function () {
if (this.removed) {
return {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment