[TIMOB-6683] Android: modules: event listeners set on modules do not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-12-15T09:16:26.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-50, Release 1.8.0.1, Release 2.0.0 |
Components | Android |
Labels | branch-v8, merge-1.8.0.1, module_module, qe-testadded, verified-1.8.0.1 |
Reporter | Opie Cyrus |
Assignee | Opie Cyrus |
Created | 2011-12-14T23:14:41.000+0000 |
Updated | 2012-01-11T15:27:27.000+0000 |
Description
support event listeners on external modules
In order to test, use the following app.js:
var harness = require("ti.harness");
harness.addEventListener("Test",function(e) {
Ti.API.info("-----------> Received event for harness:" + e.Test);
});
harness.testEventKrollDict();
harness.testEventHashMap();
and then build the attached module. Once the module is built, include in the app and when run two messages should be seen for HashMap and KrollDict.
Attachments
File | Date | Size |
---|---|---|
harness.zip | 2011-12-14T23:30:51.000+0000 | 17156 |
Verified fix on: SDK build: 1.8.0.1.RC3 Runtime: V8, Rhino Titanium Studio, build: 1.0.7.201112152014 OS: Mac OS X Lion Device: Nexus One (2.2.2) Note: Did not verify fix on sdk build 1.9.0
Closing bug. Already verified fix on 1.8.0.1