Hi Irakli,
Sorry about this, I've actually been having the same problem and just
looked into it.
It appears as though Ubiquity has regressed in the case where an
asynchronous noun-type initially returns NO suggestions but later
returns some. So for instance, the following noun type works:
var Suggester = {
_name : 'Suggester',
suggest : function(text, html, makeSuggestion) {
Utils.setTimeout(function suggestAsync() {
for each (var number in [1,2,3,4]) {
//Components.utils.reportError("making a sugg.");
makeSuggestion({
text : number,
summary : number,
html : number
});
}
}, 300);
return [CmdUtils.makeSugg("blah")];
}
}
If you remove the 'CmdUtils.makeSugg("blah")', then this noun type
will appear to stop working.
Lemme talk to Jono or Mitcho and see if we can get this fixed soon.
- Atul
> >>>>>
https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.1_Author_Tutorial#I...