On 02/21/2014 10:11 AM, PMario wrote:
On Friday, February 21, 2014 2:43:02 PM UTC+1, Anton Aylward wrote:
Is this it?
08:09:50.765 ReferenceError: e is not defined
BaseLine_Char_Loc.html:8454
If you click the line number 8454 it doesn't jump to the code you
posted. right?
Can you copy the code from http://tagsearch.tiddlyspot.com/#TagSearchSource
into the TagSearchPlguin. ... Tobias did minify the plugin code. So the
variable names are obfuscated.
"View" the tiddler source above and copy paste it into your
TagSearchPlugin. So may be we get a better line number, that may lead to
the variable that is missing.
I now get
10:55:47.684 ReferenceError: e is not defined BaseLine_Char_Loc.html:8910
and pasting from the file:
8906
8907 function invokeParamifier(params,handler)
8908 {
8909 if(!params || Params.length == undefined || Params.length <= 1)
8910 return;
8911 var i;
8912 for(i=1; i<params.length; i++) {
8913 var p = config.paramifiers[params[i].name];
8914 if(p && p[handler] instanceof Function)
8915 p[handler](params[i].value);
8916 else {
8917 var h =
config.optionHandlers[params[i].name.substr(0,3)];
8918 if(h && h.set instanceof Function)
8919 h.set(params[i].name,params[i].value);
8920 }
8921 }
8922 }
There isn't a 'e' in the calling functions.
I did a search for a "e =" to look for a place where "e" wasn't defined.
I found one but it wasn't related. Or at lest correcting it made no
differnce
9572 name: "customFormat",
9573 match: "@@|\\{\\{",
9574 handler: function(w)
9575 {
9576 switch(w.matchText) {
9577 case "@@":
9578 var e = createTiddlyElement(w.output,"span");
9579 var styles =
config.formatterHelpers.inlineCssHelper(w);
9580 if(styles.length == 0)
9581 e.className = "marked";
9582 else
9583
config.formatterHelpers.applyCssHelper(e,styles);
9584 w.subWikifyTerm(e,/(@@)/mg);
9585 break;
9586 case "{{":
9587 var lookaheadRegExp =
/\{\{[\s]*([\w]+[\s\w]*)[\s]*\{(\n?)/mg;
9588 lookaheadRegExp.lastIndex = w.matchStart;
9589 var lookaheadMatch =
lookaheadRegExp.exec(w.source);
9590 if(lookaheadMatch) {
9591 w.nextMatch =
lookaheadRegExp.lastIndex;
9592 e =
createTiddlyElement(w.output,lookaheadMatch[2] == "\n" ? "div" :
"span",null,lookaheadMatch[1]);
9593 w.subWikifyTerm(e,/(\}\}\})/mg);
9594 }
9595 break;
9596 }
9597 }
9598 },
9599
Aren't there supposed to be code scanners that look for things like this?
--
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/groups/opt_out.