Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5507] MobileWeb: Method removeProperty does not work in Ti.App.Properties

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-05-30T06:14:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeAndrew Kulinich
Created2011-05-30T05:02:05.000+0000
Updated2017-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");
});

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source