[TIMOB-5659] MobileWeb: javascript error with switch object on iPhone
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-05-25T03:06:19.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | MobileWeb |
| Labels | n/a |
| Reporter | Misha Vasko |
| Assignee | Maxim Negadaylov |
| Created | 2011-05-25T02:33:35.000+0000 |
| Updated | 2017-03-09T20:12:17.000+0000 |
Description
The javascript error in titanium.js:3481 "NO_MODIFICATION_ALLOWED_ERR:DOM" occurs on Iphone when setted properties titleOn and titleOff in the switch object. Error occurs when switching the switch on iPhone.
win = Ti.UI.currentWindow;
var swit = Ti.UI.createSwitch({
top: 10,
left: 10,
height: 100,
width: 100,
titleOn: 'titOn',
titleOff: 'titOff'
});
win.add(swit);
Closing ticket as fixed.