projects
/
profile
/
ivi
/
cowhide.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(hoofbeats) Add code to get one item from the lib.
[profile/ivi/cowhide.git]
/
examples
/
hoofbeats
/
javascripts
/
app
/
models
/
mediaItemModel.js
diff --git
a/examples/hoofbeats/javascripts/app/models/mediaItemModel.js
b/examples/hoofbeats/javascripts/app/models/mediaItemModel.js
index
222e920
..
90ec418
100644
(file)
--- a/
examples/hoofbeats/javascripts/app/models/mediaItemModel.js
+++ b/
examples/hoofbeats/javascripts/app/models/mediaItemModel.js
@@
-24,6
+24,17
@@
});
return items;
+ },
+
+ find: function(item_id) {
+ var item;
+
+ console.log("MediaItem.find: entered.");
+ app.Store.getMediaItem(item_id).done(function(data) {
+ item = app.MediaItem.create(data);
+ });
+
+ return item;
}
});