-
17 May 2013 7:02 AM #1
titlebar.remove() ignores destroy argument
titlebar.remove() ignores destroy argument
REQUIRED INFORMATION
Ext version tested:- Sencha Touch 2.2.0
- Chrome 26.0.1410.65 (Mac OS X)
- Titlebar remove(item, destroy) ignores destroy argument and the object gets destroyed after removal.
- Create button
- Add it to a titlebar
- Remove button with destroy=false
- Unchanged button
- Destroyed button
Code:var tb = this.getTitlebar(); var button = Ext.create('Ext.Button', { text:'Button' }); tb.add(button); tb.remove(button, false); console.log(button.isDestroyed); // logs true tb.add(button); // Uncaught TypeError: Cannot read property 'dom' of null
-
17 May 2013 7:33 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Thanks for the report! I have opened a bug in our bug tracker.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-4485
in
a recent build.


Reply With Quote