On Sunday, April 6, 2014 1:06:33 AM UTC-7, Jeremy Ruston wrote:
>
> var MyWidget = function(parseTreeNode,options) {
>> this.initialise(parseTreeNode,options);
>>  this.addEventListeners([
>> {type: "tw-custom-event", handler: "handleEvent"},
>> {type: "tw-custom-custom2", handler: "handleEvent"},
>>  ]);
>> };
>>
>
Although this won't fix your problem, there is an extra comma in your array 
syntax (at the end of the line for "tw-custom-custom2").
While some browsers ignore this, some browsers will throw a syntax error or 
even may create an array item with a null value, messing up the 
array.length, and possible causing an error to be thrown later on when code 
attempts to access the null value.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact


-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to