Affects Version/s: Release 1.7.0
Fix Version/s: None
Titanium 1.6.2 and 1.7.0
Accessing a Proxy's listeners property doesn't work as expected in mobilesdk 1.7.0 (as it did in 1.6.2).
Given the proxy "myView" (any view type):
- In 1.6.2 - myView.listeners would give you an object with key/value pairs equating to the listener type/array of callback functions bound as Listeners to the view.
- In 1.7.0 - myView.listeners gives you an object, however the value is now an integer, which seems to be equal to the length of what the callback array would be.
This code demonstrates the behavior:
The results are as follows:
Titanium 1.6 on iOS:
Titanium 1.8, 1.7, 1.7.1 on iOS:
See a full justification for this functionality in this comment.
Note that this functionality has never been available for Android, as this comment demonstrates.