Skip to content

Instantly share code, notes, and snippets.

@jeffdeville
Created January 26, 2011 23:10
Show Gist options
  • Save jeffdeville/797713 to your computer and use it in GitHub Desktop.
Save jeffdeville/797713 to your computer and use it in GitHub Desktop.
gifts = [
{
image: "http://ecx.images-amazon.com/images/I/41MS0md3RJL._SL500_AA300_.jpg",
asin: "-1",
gifter_image: "/images/unknown_user.gif",
gifter_id: -1
}, {
image: "http://ecx.images-amazon.com/images/I/41MS0md3RJL._SL500_AA300_.jpg",
asin: "-1",
gifter_image: "/images/unknown_user.gif",
gifter_id: -1
}, {
image: "http://ecx.images-amazon.com/images/I/41MS0md3RJL._SL500_AA300_.jpg",
asin: "-1",
gifter_image: "/images/unknown_user.gif",
gifter_id: -1
}
];
giftsView = {
giftsVM: [ko.observable(gifts[0]), ko.observable(gifts[1]), ko.observable(gifts[2])],
}
ko.applyBindings(giftsView);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment