Hi,
I use a toolkit js library (gosu) with dynapi. When I
load dynapi AND gosu's libraries, I got the following
error :
Error: n.indexOf is not a function
Source File:
http://localhost/dotproject/lib/dynapi/src/dynapi.js
Line: 388
After a few tests, I found what was going wrong. Gosu
add functions to Array prototype. If I remove this
functions, everything's going fine.
I use FF 1.0.6, but the same error occurs in IE6.
If you want to reproduce that, just add the following
function before including dynapi.js :
Array.prototype.anOtherFunction = function(s) {
alert(s);
};
Could you tell me if you got the same problem ?
Thanx
Logged In: YES
user_id=706287
If the check the dynapi-help mailing list archives, you will
see that Jesse Vitrone recently posted about a similar
problem while using Prototype ( http://prototype.conio.net/
). I suspect it's the same cause. DynAPI might be fiddling
with the prototype in such a way as to affect the core JS
objects like Array and String. This is not a good thing,
but I don't really understand it too well.