Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9688] MobileWeb: Ti.App.Properties not correctly removing entries when set to null

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-06-21T10:54:54.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-13 MW
ComponentsMobileWeb
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2012-06-21T09:44:05.000+0000
Updated2012-06-22T13:01:35.000+0000

Description

When you do a Ti.App.Properties.setString("something", null), it casts the null to a string "null" and stores it. This is incorrect behavior and should actually remove the entry. We currently remove the entry if you pass in undefined.

Comments

  1. Chris Barber 2012-06-21

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/2447

JSON Source