Forums > Javascript

vanishing functions

March 2, 2006 | 4:28 am

I get a weird error message that reads as follows:

error: js: no function slice

What’s weird is that this comes after I have called on the function many many times. It is definitely in my js file. So the patch runs fine for a while and then all the sudden it this function can’t be found anymore. If I recompile the .js file, everything proceeds to work fine again.

Anyone else run into this? Thanks for any help.


March 2, 2006 | 9:45 am

Hi Charlie,
the message doesn’t mean that the function has disappeared. It means
that there’s an error in it and therefore there’s not a valid
function with this name. Usually the actual error is also reported
when the problem occurs the first time. Try to reload the patch to
get the complete error message.
Its also possible that some variables have lost their content, when
you were changing your js with the patch open.

Stefan


March 2, 2006 | 6:38 pm

Thanks! I will keep playing with the code with this in mind. I’ll let everybody know what I find.

- Charlie


Viewing 3 posts - 1 through 3 (of 3 total)