0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-14 14:47:57 +01:00

fixed nodeValue warning and remove console.log line

This commit is contained in:
Rick Companje 2015-02-02 13:37:15 +01:00
parent a7f3cbb2fc
commit 5a91fa480c

View File

@ -85,7 +85,7 @@ function getPathFromChar(ch) {
var index = ch.charCodeAt(0)-33; var index = ch.charCodeAt(0)-33;
var element = $("#svgfont path")[index]; var element = $("#svgfont path")[index];
if (element==undefined) return ""; if (element==undefined) return "";
return $("#svgfont path")[index].attributes["d"].nodeValue; return $("#svgfont path")[index].attributes["d"].value; //was nodeValue but that's depricated
} }
function getPointsFromPath(path) { function getPointsFromPath(path) {
@ -96,7 +96,7 @@ function getPointsFromPath(path) {
var prevCmd = ""; var prevCmd = "";
var lastCmd = ""; var lastCmd = "";
console.log(path); //console.log(path);
for (var i=0; i<cmds.length; i++) { for (var i=0; i<cmds.length; i++) {
var cmd = cmds[i]; var cmd = cmds[i];