[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 Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2012-06-04T18:02:09.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | n/a |
| Components | MobileWeb |
| Labels | qe-mw020912 |
| Reporter | Michael Pettiford |
| Assignee | Chris Barber |
| Created | 2012-03-15T13:58:44.000+0000 |
| Updated | 2014-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
The sample code ran as expected without error.