From 51df37b8ec825fdc5e0b3a3fe7be02363bd3d0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 9 Jul 2011 17:11:57 +0200 Subject: [PATCH] Fix recently broken support for text-paperscript mime type. --- src/core/PaperScript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index 51ff9427..2fa74d5f 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -231,7 +231,7 @@ var PaperScript = this.PaperScript = new function() { var script = scripts[i]; // Only load this script if it not loaded already. // Support both text/paperscript and text/x-paperscript: - if (/^text\/(?:x-)paperscript$/.test(script.type) + if (/^text\/(?:x-|)paperscript$/.test(script.type) && !script.getAttribute('data-paper-loaded')) { // Produce a new PaperScope for this script now. Scopes are // cheap so let's not worry about the initial one that was