jasonkneen/TiPrefs — pull request #1 by stereoket (2013-04-29 21:37:54+00:00)
Title: Extend functionality, close button and table view sections

Sections can be created, 2 new methods created for this.

```
prefs.init("Settings");

prefs.addSection({
title: "Section"
});

prefs.addSwitch({
id: "SAVE_ON_QUIT",
caption: "Alarm"
});

prefs.addSection({
title: "T10 Accounts"
});

prefs.addTextInput({
id: "USERNAME",
caption: "username",
value: "Anonymous"
});

prefs.closeSection();

prefs.open();
```

Example of how it works, you must call closeSection(); before opening.