www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3c98ab81ddede449f42d07de91bf8b5db700ae15
parent 2a11309edd7826a1eed50e619c643a4e4c72cd74
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sat, 17 May 2014 13:47:58 -0400

Change where ID is modified so that the cache properly accounts for it.

Diffstat:
Munpacked/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 @@ -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;}