-
11 Dec 2007 4:28 AM #1
Button handlers not destroyd on window close?
Button handlers not destroyd on window close?
There is something odd with this snippet of code. Every time the window is opened, the _handlers array increases its length. Is it a bug or by design?
Code:<button onclick="openDlg()">Open</button> function openDlg(){ win = new Ext.Window({ title: 'New Window', width: 200, height: 200, modal: true, closeAction:'close', buttons: [{text: "OK"}] }); win.on ('render', function () { win.body.update(String(win.buttons[0].onClick._handlers.length)); }); win.show(); }
-
11 Dec 2007 6:30 PM #2
Happy Buttons
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.


Reply With Quote

