Hi,
I'm trying to run a cleanup function when the browser window fires the
"unload" event.  By the qooxdoo docs, I probably have to override the
"terminate" method using something like:

qx.Class.define("example.Application", {
  extend: qx.application.Standalone,

  members: {
    ...
    terminate: function() {
      alert("bye");
      this.base(arguments);
    }
...

but this "terminate" function does not seem to be called at all. What is the
correct way of doing this?


TIA!

Best regards,
Rui Lopes

PS: Doing the "same" has normal HTML (<body onunload="alert('bye');">) works
fine.

PS: I'm using FF 3.0.9 and qx 0.8.2.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to