Skip to content

Instantly share code, notes, and snippets.

@nathanpalmer
Created August 1, 2011 21:31
Show Gist options
  • Save nathanpalmer/1119052 to your computer and use it in GitHub Desktop.
Save nathanpalmer/1119052 to your computer and use it in GitHub Desktop.
var ItemCollection = Spine.Model.setup("Item", [ "stringValue", "passwordValue", "booleanValue", "optionValues", "selectedOptionValue", "multipleSelectedOptionValues", "radioSelectedOptionValue" ]);
ItemCollection.extend(DataBind);
ItemCollection.include({
});
var Item = ItemCollection.create({ stringValue: "Hello", passwordValue: "mypass", booleanValue: true, optionValues: ["Alpha","Beta","Gamma"], selectedOptionValue: "Gamma", multipleSelectedOptionValues: ["Alpha"], radioSelectedOptionValue: "Beta" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment