From 5a91fa480ce5be87f863da0825081501dc48aa94 Mon Sep 17 00:00:00 2001 From: Rick Companje Date: Mon, 2 Feb 2015 13:37:15 +0100 Subject: [PATCH] fixed nodeValue warning and remove console.log line --- js/WordArt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/WordArt.js b/js/WordArt.js index a4517d1..0ff980b 100644 --- a/js/WordArt.js +++ b/js/WordArt.js @@ -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