[TIMOB-6665] Android: Default max event listeners is set to 10
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-12-14T18:26:40.000+0000 |
| Affected Version/s | Sprint 2011-50, Release 1.8.0.1 |
| Fix Version/s | Sprint 2011-50, Release 1.8.0.1, Release 2.0.0 |
| Components | Android |
| Labels | module_gesture, qe-testadded |
| Reporter | Allen Yeung |
| Assignee | Allen Yeung |
| Created | 2011-12-14T12:32:56.000+0000 |
| Updated | 2014-06-19T12:43:45.000+0000 |
Description
We currently set the default max listeners to 10 in events.js. We will want to remove the max listener-related code since we don't expose this.
Steps to reproduce: Run the following app.js:
Expected: It will print the info statements and open the alert dialog when you switch orientations Actual: JS Runtime error for too many listenersTi.Gesture.addEventListener('orientationchange', function(e) { alert("asdf"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); }); Ti.Gesture.addEventListener('orientationchange', function(e) { Ti.API.info("orientationchanged!-----------------"); });Closing bug. Verified fix on: SDK build: 1.9.0.v20120112104633 Runtime: V8, Rhino Titanium Studio, build: 1.0.8.201201111843 Device: Droid 3 (2.3.4)