--
Mike Stay - meta...@gmail.com
http://math.ucr.edu/~mike
http://reperiendi.wordpress.com
Cajita overrides the function escape, typically used to do url
escaping. Was that intentional?
Why rename cajita.escape? I think it's perfectly fine. Just use
global.escape in the section above, or replace it with
escapeURIComponent or don't include it at all.
On Tue, Feb 2, 2010 at 2:44 PM, Mark S. Miller <eri...@google.com> wrote:Why rename cajita.escape?
> On Mon, Feb 1, 2010 at 6:49 PM, Mike Stay <meta...@gmail.com> wrote:
>>
>> Cajita overrides the function escape, typically used to do url
>> escaping. Was that intentional?
>>
>
> Just looked. This is a bug. The intension was to define a cajita.escape()
> that had nothing to do with the global escape. However, the code for
> capturing the global escape, if there is one, in sharedImports is
> sharedImports = {
> ...
> escape: escape ? markFuncFreeze(escape) : (void 0),
> ...
> };
> Since this appears within the main body of cajita.js, it is accidentally
> capturing the internally defined escape function intended for use as
> cajita.escape(). We should simply rename cajita.escape(). To what? Please,
> no one suggest "cajita.callWithEscapeContinuation()" ;).
I think it's perfectly fine. Just use
global.escape in the section above, or replace it with
escapeURIComponent or don't include it at all.
I wouldn't have had any idea that cajita.escape had something to do with
escape continuations. I suggest cajita.callWithEscape.
--
David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com
--
David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com
Yes, that's better.
Has a bug been filed?