Confirmed users
596
edits
(Link to Collections) |
m (Link to error handling) |
||
| Line 13: | Line 13: | ||
The model will never call any UI function. For example, the above Message.Reply() function will not open a composer window, but return another Message model object. The caller – which is likely in the UI – will then call Composer.openWindow(replyMessage). | The model will never call any UI function. For example, the above Message.Reply() function will not open a composer window, but return another Message model object. The caller – which is likely in the UI – will then call Composer.openWindow(replyMessage). | ||
Likewise, the model must not open any prompts, not even for | Likewise, the model must not open any prompts, not even for "Are you sure?" or "Where do you want to save the file?" type of questions. | ||
Similarly, the model will never show and error prompts. See section | Similarly, the model will never show and error prompts. See section [[Thunderbird/NextGeneration/Error handling|Error handling]]. | ||
The only exceptions are observers and localization strings. | The only exceptions are observers and localization strings. | ||