1

How can I detect when a firefox xul notificationbox element I created is closed?

Thanks, Ash

2 Answers 2

0

Looks like this is what you want: Either the notificationsHidden property or the events that are right below it.

2
  • I tried attaching an AlertClose event before, however nothing fired. Have these events actually worked for you?
    – Cairo
    Mar 9, 2011 at 3:48
  • Sorry, I didn't try it, I just tried to find something on the wiki that matched what you described.
    – Tyler
    Mar 9, 2011 at 18:49
0

The only way you can be sure is to create a derived binding for your notification in which case your destructor will run when the notification is closed. See for instance http://hg.mozilla.org/comm-central/annotate/edc24697f35e/suite/common/bindings/notification.xml#l1616

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.