I just discovered that problem is in something different. It's not about setTimeout-s cause the same code works in 0.2pre 7 but doesn't works in 0.2pre17 so guess there is sort of regression, or might changes in the API..
Any help is welcome !! -- Irakli Gozalishvili Web: http://rfobic.wordpress.com/ Address: Taksteeg 3 - 4, 1012PB Amsterdam, Netherlands On Mon, Mar 16, 2009 at 4:16 PM, Irakli Gozalishvili <[email protected]>wrote: > Hi I'm trying to make async suggestions in noun type but it not seems to > work as I expected. my noun type looks like > > var Suggester = { > _name : 'Suggester', > > suggest : function(text, html, makeSuggestion) { > > Utils.setTimeout(function suggestAsync() { > for each (var number in [1,2,3,4]) { > displayMessage(number); > makeSuggestion({ > text : number > summary : number, > html : number > }); > } > }, 300); > return []; > } > } > > I was expecting to see the suggestion but unfortunately I don't. I only see > the numbers through AlertService (displayMessage), any ideas what am I > doing wrong? Or its not even supposed to work ?? > > Thanks > -- > Irakli Gozalishvili > Web: http://rfobic.wordpress.com/ > Address: Taksteeg 3 - 4, 1012PB Amsterdam, Netherlands > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" 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/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
