Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

__trim__ Function not available from Envjs.setCookie Method

#178

Hi! I'm bothering you, because I'm having some problems using cookies in Rhino. When setting a cookie, I get an error saying that the __trim__ function was not found.
I've done some debugging, and found that the Envjs.setCookie at env.rhino.js method is defined between a closure than do not includes this function.
If I add this __trim__ function doing a copy/paste inside the same closure which Envjs.setCookie resides, it works fine.

I'm not sure if what I'm doing is correct, but for now it's working.
I didn't had yet time to find out how the build process of Envjs works, but I think that there should be a missing reference to the __trim__.js file.

I hope this post helps to fix this issue (if you can understand my bad english! hehe).

Thanks for this great lib!
Gabriel

Reported by Gabriel Jürgens · September 2nd, 2010 @ 12:33 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Sylvain Dehors
    Sylvain Dehors

    Hello
    I've encountered the same pb. Any updates ?

    November 2nd, 2011 @ 10:17 PM

  2. Chris Clarke
    Chris Clarke

    Hi,

    We're getting the same issue too. Copying the trim function in the closure as Gabriel describes fixed for us too.

    When is this going to be fixed please?

    April 2nd, 2012 @ 11:25 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.