RE: Confusing code in org.apache.flex.collections.ArrayList

2014-05-23 Thread Michael A. Labriola
>Its intended so that if multiple people call disable() or enable() that it >will only dispatch events if the net result gets back to 0. >So, if two listeners disable() and one says enable() it shouldn't dispatch >again until the last one says enable() On a side note, I also see these methods ca

RE: Confusing code in org.apache.flex.collections.ArrayList

2014-05-23 Thread Michael A. Labriola
From: Gary Yang [mailto:flashflex...@gmail.com] Sent: Friday, May 23, 2014 1:16 PM To: dev@flex.apache.org Subject: Confusing code in org.apache.flex.collections.ArrayList Hi, I am reading org.apache.flex.collections.ArrayList.as I am confused about this private pro

Confusing code in org.apache.flex.collections.ArrayList

2014-05-23 Thread Gary Yang
Hi, I am reading org.apache.flex.collections.ArrayList.as I am confused about this private property: /** * @private * Indicates if events should be dispatched. * calls to enableEvents() and disableEvents() effect the value when == 0 * events should be dispatched.