From 3c98ab81ddede449f42d07de91bf8b5db700ae15 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 17 May 2014 13:47:58 -0400 Subject: [PATCH] Change where ID is modified so that the cache properly accounts for it. --- unpacked/jax/output/SVG/jax.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index f24f07344..d5f80165d 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -1032,14 +1032,10 @@ var def, t = SVG.config.blacker; var cache = SVG.config.useFontCache; var transform = (scale === 1 ? null : "scale("+SVG.Fixed(scale)+")"); + if (cache && !SVG.config.useGlobalCache) {id = "E"+DEFN+"-"+id} if (!cache || !GLYPHS[id]) { def = {"stroke-width":t}; - if (cache) { - if (!SVG.config.useGlobalCache) {id = "D"+DEFN+"-"+id} - def.id = id; - } else if (transform) { - def.transform = transform; - } + if (cache) {def.id = id} else if (transform) {def.transform = transform} if (p !== "") {def.d = "M"+p+"Z"} this.SUPER(arguments).Init.call(this,def); if (cache) {DEFS.appendChild(this.element); GLYPHS[id] = true;}