[TIMOB-4890] Properties of Titanium.UI.View members can not be deleted
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-08-04T13:16:42.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2011-31 |
Components | iOS |
Labels | view |
Reporter | Mikhail Yurasov |
Assignee | Blain Hamon |
Created | 2011-06-23T06:44:57.000+0000 |
Updated | 2017-03-03T22:30:29.000+0000 |
Description
Properties of Titanium.UI.View members can not be deleted
var myApp = {};
myApp.ui = {};
myApp.ui.createMyView = function() {
var v = Ti.UI.createView({});
v.abc = {a:1,b:2,c:3};
return v;
};
var testVar = {abc:{a:1,b:2,c:3}};
var myView = myApp.ui.createMyView();
alert(JSON.stringify(myView.abc)); // {"a":1,"b":2,"c":3}
alert(JSON.stringify(testVar.abc)); // {"a":1,"b":2,"c":3}
delete myView.abc.a;
delete testVar.abc.a;
alert(JSON.stringify(myView.abc)); // {"a":1,"b":2,"c":3} !!!, shold be {"b":2,"c":3}
alert(JSON.stringify(testVar.abc)); // {"b":2,"c":3} - OK
Closing as duplicate.