On Jan 5, 7:35 am, Jake <jgarfi...@earthlink.net> wrote:
> I am using prototype  All I am trying to do is get the
> results from evalJSON and iterate through them. I have an Ajax
> request, and on success it does something like:
> thisObj.adjustResultsForMovement.bind(thisObj,
> transport.responseText.evalJSON(true))();

I have learned the problem is not with iterationg, but if I do
something like this:

        var markers =  transport.responseText.evalJSON(true)
        thisObj.adjustResultsForMovement.bind(thisObj, markers)();

If markers is  an empty array [], then whenadjustResultsForMovement is
called, prototype changes the markers array and adds all of the
prototype functions.  It doesn't do this when markers has elements.

Is there a way I can stop it from adding all of these functions?  If I
want to pass an empty array using bind, is there no way I can do that?



You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to