Hi,

would be great if anybody could provide a hint why this is not working as 
expected (it should only return $:/Control/Panel" instead it returns all 
system tiddlers in the system).

Just copypaste the code in firebug (or console) after opening tiddlywiki.com

var filter = (function() {
  var filterComponents = [];
  // also shadow tiddlers
  filterComponents.push("all[tiddlers+shadows]");
  // only tiddlers with this prefix
  filterComponents.push("prefix[$:/]");
  return "[" + filterComponents.join('') + "]";
}).call(this);

console.log(filter);

tRefs = [ "$:/ControlPanel", "$:/i/dont/exist" ];

var source = function(iterator) {
  for(var i = 0; i < tRefs.length; i++) {
    var tObj = $tw.wiki.getTiddler(tRefs[i]);
    iterator(tObj, tRefs[i]);
  }
};

$tw.wiki.compileFilter(filter).call($tw.wiki, source);

Regards Felix

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to