Skip to content

Commit

Permalink
Merge pull request #909 from Mindelusions/timob-6502
Browse files Browse the repository at this point in the history
[TIMOB-6502] MobileWeb: Ti.App.Properties - setting a property to null causes execution failure
  • Loading branch information
donthorp committed Dec 14, 2011
2 parents 441af9b + efe9c15 commit 5757b23
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mobileweb/src/Ti.App/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@
};
api.setString = function(prop, val){
_setProp(prop, val, function(val){
if(typeof val === 'string'){
return val;
}
return val.toString();
return val !== null ? ""+val : null;
});
};
})(Ti._5.createClass('Titanium.App.Properties'));

0 comments on commit 5757b23

Please sign in to comment.