View Full Version : [CLOSED] afteranimate fired many times even if Buffer is specified

May 24, 2012, 4:43 PM
I'm listening to the afteranimate event of a chart animation with the advised method of using Buffer="5000" for filtering the firing events. However it still seem to be firing a lot of events. Do you have any suggestion why that is the case?

May 24, 2012, 6:36 PM
In previous thread i gave wrong suggestion, Buffer works for one target only. But AnimConfig applies for many elements thereore events are fired from different targets
It is required to create buffered handler

<script type="text/javascript">
var bufferedAfterAnimate = Ext.Function.createBuffered(function(){
alert('after animate');
}, 5000);

<AfterAnimate Fn="bufferedAfterAnimate" />

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Function-method-createBuffered (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.Function-method-createBuffered)