[TIMOB-5507] MobileWeb: Method removeProperty does not work in Ti.App.Properties
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | Medium | 
| Status | Closed | 
| Resolution | Fixed | 
| Resolution Date | 2011-05-30T06:14:53.000+0000 | 
| Affected Version/s | n/a | 
| Fix Version/s | n/a | 
| Components | MobileWeb | 
| Labels | n/a | 
| Reporter | Misha Vasko | 
| Assignee | Andrew Kulinich | 
| Created | 2011-05-30T05:02:05.000+0000 | 
| Updated | 2017-03-09T20:33:17.000+0000 | 
Description
	After applying the removeProperty to the existing property, it is still in localStorage.
var win = Ti.UI.currentWindow;
var setButton = Ti.UI.createButton({
	title: 'Set Properties',
	heigth: 40,
	width: 220,
	left: 50,
	top: 10
});
var getButton = Ti.UI.createButton({
	title: 'Get Properties',
	heigth: 40,
	width: 220,
	left: 50,
	top: 50
});
var removeButton = Ti.UI.createButton({
	title: 'Remove Properties',
	heigth: 40,
	width: 220,
	left: 50,
	top: 90
});
win.add(setButton);
win.add(getButton);
win.add(removeButton);
setButton.addEventListener('click',function(){
	Ti.App.Properties.setString("string_property","this is property");
});
getButton.addEventListener('click',function(){
	alert(Ti.App.Properties.getString("string_property"));
});
removeButton.addEventListener('click',function(){
	Ti.App.Properties.removeProperty("string_property");
});
Closing ticket as fixed.