Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15897] Mobile Web: Getting "Undefined" on clicking label in classic mobile web default single window application

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-12-06T22:59:59.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 25, 2013 Sprint 25 Core, Release 3.2.0, Release 3.3.0
ComponentsMobileWeb
Labelsdev-investigate, qe-3.2.0, qe-testadded
ReporterPriya Agarwal
AssigneeChris Barber
Created2013-12-05T06:03:39.000+0000
Updated2014-02-24T22:54:33.000+0000

Description

Getting "Undefined" message on alert while clicking on label in default classic single window application. Steps to reproduce:

Create Classic Default single window application.

On app launch click on "Welcome to Titanium" label

Actual Result:

Alert appears with message "undefined"

Expected Result:

Alert must appear with message "Welcome to Titanium"

Working fine on iOS and Android devices. Getting undefined on label click because on click code is:
alert(e.source.text);
whereas it should be
alert(this.text);

Comments

  1. Chris Barber 2013-12-06

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5085 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5086
  2. Priya Agarwal 2013-12-09

    Verified with test environment: Appcelerator Studio: 3.2.0.201312081316 SDK:3.2.0.v20131208204843 alloy: 1.3.0-beta acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-beta titanium-code-processor: 1.1.0-beta Xcode:5.0.2 OS: Mac OSX 10.9 Browser: Firefox(25.0.1) Getting correct alerts. Checked with default alloy and classic single window application. Hence closing as working fine.

JSON Source