[CLOSED] afteranimate fired many times even if Buffer is specified

  1. #1

    [CLOSED] afteranimate fired many times even if Buffer is specified

    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?
    Last edited by Daniil; May 28, 2012 at 5:53 PM. Reason: [CLOSED]
  2. #2
    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);
    </script>
    
    <AfterAnimate Fn="bufferedAfterAnimate" />
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Function-method-createBuffered
    Last edited by Daniil; May 24, 2012 at 6:51 PM. Reason: Quote tags are replaced with code ones

Similar Threads

  1. Replies: 2
    Last Post: Sep 12, 2011, 3:25 PM
  2. [CLOSED] Buffer vs Delay
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 07, 2011, 6:34 PM
  3. [CLOSED] [1.0] User Control loaded several times
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 07, 2011, 10:33 AM
  4. [CLOSED] Long save times
    By ashton.lamont in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 24, 2011, 6:11 PM
  5. Buffer/delay after save?
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Feb 25, 2009, 6:42 PM

Tags for this Thread

Posting Permissions