Skip to content
Snippets Groups Projects
Commit 14c05b3c authored by rswindell's avatar rswindell
Browse files

If only 2 arguments are passed to userprops.set(), assume the caller won't to

set the entire section/object all in one go. This is more intuitive than the
(still supported) userprops.set(section, null, object) syntax.
parent 6abafd00
Branches
Tags
No related merge requests found
......@@ -44,6 +44,8 @@ function set(section, key, value, usernum)
var result;
if(!section)
result = file.iniSetAllObjects(value);
else if(value === undefined)
result = file.iniSetObject(section, key);
else if(!key)
result = file.iniSetObject(section, value);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment