SinglePageModePlugin not working

6 views
Skip to first unread message

srk

unread,
Nov 25, 2009, 2:14:13 PM11/25/09
to TiddlyWiki
Hello,

I installed Eric's SinglePageModePlugin in this page:

http://cumulus.ei.hv.se/~srk/research/beacon/index.html

and added the suggested lines in zzConfigTweaks:

http://cumulus.ei.hv.se/~srk/research/beacon/index.html#zzConfigTweaks

but it seems not to be working (e.g. click a link in the left-hand
menu and it appears at the top of the page, but does not close the
previous tiddler.

Can anyone diagnose the problem?

Many thanks,
Steve Kirk

Alex Hough

unread,
Nov 25, 2009, 2:38:13 PM11/25/09
to tiddl...@googlegroups.com
Hi Steve,

The problem seems to be the 'CustomTracker'

I upgraded the TW core, recopied the SinglePageModePlugin mode in case there was an update.
Then I disabled all other plugins.

It then worked



ALex
2009/11/25 srk <steve...@gmail.com>

--

You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.





--
http://www.multiurl.com/g/64

Eric Shulman

unread,
Nov 25, 2009, 2:49:11 PM11/25/09
to TiddlyWiki
> I installed Eric's SinglePageModePlugin in this page:
> http://cumulus.ei.hv.se/~srk/research/beacon/index.html
> and added the suggested lines in zzConfigTweaks:
> but it seems not to be working (e.g. click a link in the left-hand
> menu and it appears at the top of the page, but does not close the
> previous tiddler.

There's a plugin in your doc called "CustomTracker" that is
incorrectly hijacking the wrong function... SinglePageModePlugin
hijacks Story.prototype.displayTiddler() so it's added features are
applied to every 'Story'-classed object present in the TW runtime.

However, CustomTracker plugin is replacing story.displayTiddler() in
the specific instance of the global 'story' runtime object creating
during startup. Because the changed function is being assigned
directly to an object, rather than an object *prototype*, the
overridden function is being invoked instead of the one assigned by
SinglePageModePlugin.

If you disable or delete the CustomTracker plugin, things may just
start working....

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
Reply all
Reply to author
Forward
0 new messages