> my code is:
>
> <<forEachTiddler where
> 'tiddler.tags.startsWith("ulcn").length > 0'
> script '
>    Array.prototype.startsWith=function(txt) {
>       var out=[];
>       for (var i=0;i<tiddler.tags.length;i++)
>          if (tiddler.tags[i].substr(0,txt.length)==txt)
>             out.push(tiddler.tags[i]);
>       return out;
>    }
> ' >>

Try this:
-----------------------
<<forEachTiddler where
'tiddler.tags.startsWith("ulcn").length > 0'
script '
   Array.prototype.startsWith=function(txt) {
      var out=[];
      for (var i=0;i<this.length;i++)
         if (this[i].substr(0,txt.length)==txt)
            out.push(this[i]);
      return out;
   }
' >>
-----------------------

-e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to