Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Autoload plugin conflicts with Prototype library

closed-fixed
nobody
Interface (5)
5
2007-05-09
2007-05-09
Anonymous
No

When I turn on the autoload plugin, jsMath stops rendering TeX if the page also includes the prototype javascript library. I can fix the problem either by commenting out the script tag which includes prototype, or by setting autoload to 0 in easy/load.js.

I can provide a sample document if you think it'd be useful.

Best,
Ben
zubin at mail dot utexas dot edu which probably doesn't fool anybody

Discussion

    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=1161141
    Originator: NO

    It looks like Prototype adds functions to Array objects, and that was confusing the autoload plugin, which uses an iterator over the fields of the loadFiles and loadFonts arrays. The autoload plugin tried to use these new functions as names of files and fonts to load, which, needless to say, caused troubled. I have fixed it and committed it to the CVS repository. Get the latest version of plugins/autoload.js and let me know if that doesn't fix the problem for you.