Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8044] MobileWeb : Window - Using a property from an Android namespace causes an error of "TypeError: Result of expression 'domattr[value ? "add" : "remove"' [undefined] is not a function."

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-06-04T18:02:09.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsMobileWeb
Labelsqe-mw020912
ReporterMichael Pettiford
AssigneeChris Barber
Created2012-03-15T13:58:44.000+0000
Updated2014-01-28T23:51:19.000+0000

Description

Steps to reproduce: 1. Create a default mobile web app and change the app.js code to the following:
var win = Ti.UI.createWindow({
	softInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : '',
	windowSoftInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : ''
	});
win.open();
2. Run the app Actual result: The window is not created and the error of "TypeError: Result of expression 'domattr[value ? "add" : "remove"' [undefined] is not a function." is logged. Expected result: The properties are ignored and the window is created

Comments

  1. Chris Barber 2012-06-04

    The sample code ran as expected without error.

JSON Source