|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Ext version tested:
Adapter used:
css used:
Browser versions tested against:
Operating System:
Description:
Test Case: Change examples/charts/charts.js to this: /*!
* Ext JS Library 3.0.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.chart.Chart.CHART_URL = '../../resources/charts.swf';
Ext.onReady(function(){
var store = new Ext.data.JsonStore({
fields:['name', 'visits', 'views'],
data: [
{name:'Jul 07', visits: 245000, views: 3000000},
{name:'Aug 07', visits: 240000, views: 3500000},
{name:'Sep 07', visits: 355000, views: 4000000},
{name:'Oct 07', visits: 375000, views: 4200000},
{name:'Nov 07', visits: 490000, views: 4500000},
{name:'Dec 07', visits: 495000, views: 5800000},
{name:'Jan 08', visits: 520000, views: 6000000},
{name:'Feb 08', visits: 620000, views: 7500000}
]
});
// extra extra simple
var window = new Ext.Window({
title: 'ExtJS.com Visits Trend, 2007/2008 (No styling)',
renderTo: 'container',
width:500,
height:300,
x: 100,
y: 100,
layout:'fit',
items: {
xtype: 'linechart',
store: store,
xField: 'name',
yField: 'visits',
listeners: {
itemclick: function(o){
var rec = store.getAt(o.index);
Ext.example.msg('Item Selected', 'You chose {0}.', rec.get('name'));
}
}
}
});
window.show();
new Ext.Button({
text: 'Press me after closing the window',
renderTo: 'container',
handler: function(b,e) {
store.removeAll();
}
});
});
Steps to reproduce the problem:
The result that was expected:
The result that occurs instead:
Debugging already done:
Possible fix:
Last edited by Allan; 08-06-2009 at 05:59 PM.. Reason: Update possible fix |
|
#2
|
||||
|
||||
|
This is already fixed in SVN, the chart wasn't unbinding itself from the store on destruction. You might want to grab the latest from the trunk. Marking this one as closed.
|
|
#3
|
|||
|
|||
|
Can you provide where is the fix exactly located in the SVN like the method name..I dont want the whole code to be replaced
Thanks |
|
#4
|
|||
|
|||
|
Did you try checking rev 3317 and 4665?
__________________
MJ API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository Frequently Asked Questions: FAQs Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow |
|
#5
|
|||
|
|||
|
Hi, How/where can I download this fix?
|
![]() |
| Thread Tools | |
|
|