Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6683] Android: modules: event listeners set on modules do not work

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-12-15T09:16:26.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-50, Release 1.8.0.1, Release 2.0.0
ComponentsAndroid
Labelsbranch-v8, merge-1.8.0.1, module_module, qe-testadded, verified-1.8.0.1
ReporterOpie Cyrus
AssigneeOpie Cyrus
Created2011-12-14T23:14:41.000+0000
Updated2012-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

FileDateSize
harness.zip2011-12-14T23:30:51.000+000017156

Comments

  1. Wilson Luu 2011-12-19

    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
  2. Wilson Luu 2012-01-11

    Closing bug. Already verified fix on 1.8.0.1

JSON Source