This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.index.open(); | |
function doClick(e) { | |
Ti.API.info(JSON.stringify(e)); | |
} | |
var library = Alloy.Collections.book; | |
library.fetch(); | |
Ti.API.info(JSON.stringify(library)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var collection = Backbone.Collection.extend({ | |
comparator: function(model){ | |
return model.get('title'); | |
} | |
}); | |
var library = new collection([ | |
{title: 'To Kill a Mockingbird', author:'Harper Lee'}, | |
{title: 'The Catcher in the Rye', author:'J. D. Salinger'}, | |
{title: 'Of Mice and Men', author:'John Steinbeck'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_meta": { | |
"sources": [ | |
{ | |
"json": "XUA2022CharacterOptions", | |
"abbreviation": "XUA22CO", | |
"full": "Unearthed Arcana 2022: Character Origins", | |
"authors": [ | |
"Wizards of the Coast" | |
], |