Hi Tobias,
How about returning the function result?
createTiddlyLink = function (place, title, includeText, className,
isStatic, linkedFromTiddler, noToggle) {
//if there is no such tiddler
if (!store.fetchTiddler(title)) {
//take title as custom title or as is
title = window.customTitles[title] || title;
}
//call core function
return createTiddlyLink_CustomTitle.apply(this, arguments);
}
This version doesn't throw error alerts for me.
Best regards,
Yakov.
вторник, 26 марта 2013 г., 17:12:30 UTC+4 пользователь Tobias Beer написал:
>
> Hi everyone,
>
> I was working on a little plugin / example implementation for Arc...
> https://groups.google.com/d/msg/tiddlywikidev/_-2Em4VxoIw/bnbZdMmTTEIJ
>
> It will allow to use a custom tiddler title next to the normal core
> tiddler title, and by default display the custom title in a tiddler or
> lists.
>
> However, in an attempt of Hijacking the core createTiddlyLink function, I
> am running into some problems, see the alert box:
> http://tbtemp.tiddlyspace.com/#CustomTitlePlugin
>
> ...the intention for this hijack is to allow the user to create
> TiddlyLinks that do not actually point to an existing tiddler but rather to
> the custom title of one, e.g. [[Custom Title]] actually linking to
> [[Normal Title]].
>
> Anybody have an idea why that fails?
>
> 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.