Hi Tobias, could you please provide some more details about why hijacked functions should be accessible via some global variables? What "later introspection" is? May be an example..
Best regards, Yakov. вторник, 5 марта 2013 г., 19:38:58 UTC+4 пользователь Tobias Beer написал: > > Hi Yakov, > > >> However, I've found a workaround: first, I make it invisible, that open >> the target and then actually close the "source" tiddler: >> > > Yes, of course! For completeness sake... > > /*** >> |''Name''|FromTiddlerToTiddlerPlugin| >> |''Description''|closes current tiddler when clicking a tiddlyLink >> holding the shift key| >> |''Author''|[[Yakov|http://yakov.tiddlyspace.com]]| >> |''Version''|1.0| >> |''Source''|http://your.path#FromTiddlerToTiddlerPlugin| > > ***/ >> //{{{ >> onClickTiddlerLinkWithoutShiftKey = onClickTiddlerLink; >> onClickTiddlerLink = function (ev) { >> >> var el, >> //close when shift is pressed >> x = (ev || window.event).shiftKey, >> //get tiddler dom element >> tid = story.findContainingTiddler(this); >> >> //close? => hide dom element >> if(x) tid.style.display = 'none'; >> >> //open new tiddler >> el = onClickTiddlerLinkWithoutShiftKey(ev); >> >> //close? => finally close old tiddler >> if(x) story.closeTiddler(tid.getAttribute("tiddler")); >> >> //return new tiddler >> return el; >> } >> //}}} > > > Cheers, Tobias. > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/tiddlywikidev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
