Fix recently broken support for text-paperscript mime type.

This commit is contained in:
Jürg Lehni 2011-07-09 17:11:57 +02:00
parent 615a1281e3
commit 51df37b8ec

View file

@ -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