e.g.:

var noun = {
  _name : 'timer',
  suggest : function(text, html, callback) {
    for each(var i in [1, 2, 3, 4]) with({i:i})
      Utils.setTimeout(function suggestAsync(){
        callback(CmdUtils.makeSugg(i +'', null, i));
      }, i * 1e3);
    return [{text: '-', summary: '...loading'.italics()}];
    // ^ must provide a non empty `text' because of [parser.js L367]
    // (which should check summary instead of text)
  }
};
CmdUtils.CreateCommand({
  name: 'test',
  icon: 'chrome://ubiquity/skin/icons/favicon.ico',
  takes: {_: noun},
  modifiers: {_: noun},
  execute: function(dob, mod){},
  preview: function(pbl, dob, mod){},
});

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to