Results 1 to 2 of 2

Thread: Buffering two listeners

  1. #1
    Sencha User
    Join Date
    Jul 2016
    Posts
    38
    Answers
    1

    Default Buffering two listeners

    Hi! Is there way to buffer two listeners with the same function:

    Code:
    component.on('resize', me.handleResize, component, { buffer: 20 });
    component.on('add', me.handleResize, component, { buffer: 20 });
    Here I have one component that will listen to two different events but with the same function handleResize. I want to buffer two listeners together.

  2. #2

    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    316
    Answers
    64

    Default

    Just wrap the handleResize function declaration inside a Ext.Function.createBuffered call.

Similar Threads

  1. Slow buffering in IE
    By ragzovskii in forum Ext JS 6.x Bugs
    Replies: 3
    Last Post: 21 Jan 2016, 7:08 AM
  2. How to buffering changes using viewmodel
    By Tarabass in forum Ext 5: Q&A
    Replies: 2
    Last Post: 27 May 2015, 3:31 PM
  3. Buffering in a TreePanel
    By ngd in forum Sencha Ext JS Q&A
    Replies: 1
    Last Post: 19 Oct 2012, 5:51 AM
  4. PR4 Store: no buffering?
    By MahlerFreak in forum Sencha Touch 2.x: Discussion
    Replies: 1
    Last Post: 27 Jan 2012, 11:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •