Hi everyone,
Recently I created a page on TiddlySpot.com and encountered the same
problem. Then I started searching for a solution and realized that this has
been there for a while already. I didn't find a fix to it so I did it
myself.
The problem lies in the *config.optionHandlers['chk'].get *function that
PasswordOptionsPlugin overrides:
merge(config.optionHandlers['chk'], {
get: function(name) {
// is there an option linked with this chk ?
var opt = name.substr(3);
if (config.options[opt])
*saveOptionCookie*(opt); *<--------- This is the
problem.*
return config.options[name] ? "true" : "false";
}
});
In the overridden version the PasswordOptionsPlugin tries to *save the
options in this get function*, but that saveOptionsCookie() function
eventually *leads to another function called saveCookie(), in which it
calls this get function again*! So you can see this get function never gets
returned and the option never gets saved.
*The fix is to do the saveOptionCookie() in the set function instead*. You
can replace the above lines of codes with the below ones and the problem is
gone.
merge(config.optionHandlers['chk'], {
set: function(name,value) {
config.options[name] = value == 'true';
// is there an option linked with this chk ?
var opt = name.substr(3);
if (config.options[opt])
saveOptionCookie(opt);
}
});
Have Fun!
Vincent
On Wednesday, March 30, 2011 9:11:53 PM UTC+8, Jeremy Ruston wrote:
>
> I'm on the same version of Chrome on Mac OS X, and I'm not getting the
> error for the cityofcalgary wiki on either dropbox and from
> tiddlyspace. I've also tried Firefox 4 and am unable to duplicate the
> issue. Are you on Windows?
>
> So, I'm wondering if there is an issue with a browser extension that
> you might be using? It may be worth trying to start Firefox and Chrome
> in safe and incognito mode (respectively) and repeating the
> experiment?
>
> There's some information about safe mode and incognito mode here:
>
> http://googlesystem.blogspot.com/2010/02/google-chrome-safe-mode.html
>
> Best wishes
>
> Jeremy
>
> On Tue, Mar 29, 2011 at 4:23 PM, Craig in Calgary
> <[email protected] <javascript:>> wrote:
> > Error while executing macro <<tabs>>:
> > RangeError: Maximum call stack size exceeded
> >
> > http://dl.dropbox.com/u/921459/TiddlyWikis/cityofcalgary.html
> > http://cityofcalgary.tiddlyspot.com
> >
> > But the mystery thickens:
> > * When I open it from TiddlySpot with Chrome 10.0.648.204, the error
> > is present.
> > * When I open it from Dropbox with Chrome 10.0.648.204, there is no
> > error.
> > * When I open either with IE 7.0.5730.13CO, there is no error.
> > * When I open either with SeaMonkey 2.0.13, there is no error.
> > * My Firefox 4 is currently corrupt so I can't test that environment.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "TiddlyWiki" group.
> > To post to this group, send email to [email protected]<javascript:>
> .
> > To unsubscribe from this group, send email to
> [email protected] <javascript:>.
> > For more options, visit this group at
> http://groups.google.com/group/tiddlywiki?hl=en.
> >
> >
>
> --
> Jeremy Ruston
> mailto:[email protected] <javascript:>
> http://www.tiddlywiki.com
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.