|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Test Case:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Menu Item Bug</title>
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css">
</head>
<body>
<script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext/ext-all-debug.js"></script>
<script type="text/javascript">
Ext.BLANK_IMAGE_URL = "ext/resources/images/default/s.gif";
Ext.namespace("Bugtest");
Bugtest.test = function()
{
return (
{
init: function()
{
var new_win = new Ext.Window({
title: 'Bug Test',
width: 200,
height: 200,
tbar: [
{
text: 'Test Menu',
menu: {
items: [
{
text: 'Item 1',
handler: function() { alert('item 1'); }
},
{
text: 'Item 2',
handler: function() { alert('item 2'); }
},
{
text: 'Item 3',
handler: function() { alert('item 3'); }
},
{
text: 'Delete This',
id: 'item_to_destroy',
handler: function() { alert('this will not appear'); }
}
]
}
}
],
});
new_win.show();
// this will remove the listener, but not remove the component
Ext.destroy(Ext.getCmp('item_to_destroy'));
}
});
}
</script>
<script type="text/javascript">
var t = new Bugtest.test();
t.init.call(t);
</script>
</body>
</html>
The fourth item on the menu should be removed from the menu. Actual behavior: The fourth item on the menu appears, but the listener is removed. |
|
#2
|
|||
|
|||
|
Have you verified this against 2.3?
__________________
Tim Ryan - Ext JS Support Team Read BEFORE posting a question / BEFORE posting a Bug Use Google to Search - API / Forum API Doc (3.x | 2.x | 1.x) / FAQ / Wiki / Tutorials / 1.x->2.0 Migration Guide |
|
#3
|
|||
|
|||
|
No I haven't had a chance to download 2.3 yet, I'll try to do that this afternoon and see what happens.
|
![]() |
| Thread Tools | |
|
|