Skip to content

Commit

Permalink
updated video.js and installed underscore.js via npm
Browse files Browse the repository at this point in the history
  • Loading branch information
bconsole committed Jan 21, 2012
1 parent fcbc911 commit 9e0439d
Show file tree
Hide file tree
Showing 45 changed files with 9,027 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/video/video.js
Expand Up @@ -51,17 +51,21 @@ var load = function(video, callback) {

var obj = JSON.parse(data);

if (obj.videos.length === 1) {
if (obj.videos.length > 0) {
for (var i = 0; selected_vid = obj.videos[i], i < obj.videos.length; i++) {
console.log('video name = ', selected_vid.name);

// add a loop here that loops through all the results and
// gets by video.id
if (selected_vid.id === 2) {
populateObject(video, selected_vid);
}
};

populateObject(video, obj.videos[0]);
console.log('there are #' + obj.videos.length + ' videos in the json docomnet!');

callback(null, video);
}
}); // end readFile
}
} // end internal load function

// _video.prototype.loadCollection = function() {
// console.log('loading a collection of videos');
Expand Down
3 changes: 3 additions & 0 deletions node_modules/underscored/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions node_modules/underscored/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions node_modules/underscored/examples/example.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 147 additions & 0 deletions node_modules/underscored/lib/custom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions node_modules/underscored/lib/underscored.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e0439d

Please sign in to comment.