Javascript Ape client intereference with mootool

65 views
Skip to first unread message

Léo SEI

unread,
Nov 3, 2010, 11:54:39 AM11/3/10
to APE Project
Hi,

I'm using the Javascript client for Ape (and I can't use the mootool
client because my browser is weird and I had to change the client
javascript librariry to make it work, so it like to keep it like
that).

When I test my initialization script (loading client, start, and join
a channel) it works perfectly.
but when I add the mootool core library in my index (because I need it
for some other stuff), my Ape client suddenly gives me an error on the
joining a channel part.


File : file:/localhost/C:/Users/WidgetTV/AppData/Local/Temp/
Samsung TV Apps SDK/temporarywidget/Ressources/lib/mootools-
core-1.3.js
Line No : 44
Error Detail : TypeError: item.$family is not a function

it looks like this error is triggered on the
client.addEvent('multiPipeCreate', function(pipe, options) {}); part

but it shouldn't need to go on the mootool library because if I make
it run without loading it, everything works perfectly :-(

How could I do to force the client no to use the mootool functions ?

thanks a lot

eerne

unread,
Nov 3, 2010, 2:54:38 PM11/3/10
to APE Project
Hi Léo

I had this too, it's because inside the iframe there is mootools 1.2

and I assuem you use mootools 1.3 outside the iframe. the problem is
(afaik) that ape passes an object (that is extended with moo1.2) to
outside the iframe where you use moo1.3

then there will be a conflict.

solution is quite easy: just update the moo version that ape uses to
moo1.3 with compat, or try my fork:
https://github.com/eerne/APE_JSF/commit/af8799413e1b040c307be8b18d44a1939fc2304a
Reply all
Reply to author
Forward
0 new messages