mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-13 06:27:55 +01:00
fixed nodeValue warning and remove console.log line
This commit is contained in:
parent
a7f3cbb2fc
commit
5a91fa480c
@ -85,7 +85,7 @@ function getPathFromChar(ch) {
|
||||
var index = ch.charCodeAt(0)-33;
|
||||
var element = $("#svgfont path")[index];
|
||||
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) {
|
||||
@ -96,7 +96,7 @@ function getPointsFromPath(path) {
|
||||
var prevCmd = "";
|
||||
var lastCmd = "";
|
||||
|
||||
console.log(path);
|
||||
//console.log(path);
|
||||
|
||||
for (var i=0; i<cmds.length; i++) {
|
||||
var cmd = cmds[i];
|
||||
|
Loading…
Reference in New Issue
Block a user