Comment 3 for bug 1823041

Revision history for this message
Bill Erickson (berick) wrote :

Interesting, Jane, it had not occurred to me a dialog would produce multiple results, but I can see how that might be useful in some cases. I suppose as a bonus, it's also easy to turn Observables into promises where preferred.

Thinking this through a bit, an Observable dialog would "complete" at dialog close time, it would "error" on exception, and it would produce zero or more "success" events depending on the purpose of the dialog.

A confirm dialog, for example, may produce a "success" on confirm, but nothing on un-comfirm. In either case, the user can easily tell when the dialog is closed via its complete handler...

I think the code I just pushed moves us a little closer in this direction, so it could be built upon...

+1 from me