Permalink
Browse files

Returned this in some functions to allow chaining.

  • Loading branch information...
manast committed Feb 25, 2012
1 parent 01d5115 commit d990fa9b5b4aa792d6e1b9e3314cdc1c3da3b93d
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/navcodec.js
View
@@ -87,14 +87,17 @@ var Media = function(inputFormat, fileSize){
Media.prototype.info = function(){
this.inputFormat.dump();
+ return this;
}
Media.prototype.addOutput = function(filename, options){
this._outputs.push({filename:filename, options:options});
+ return this;
}
Media.prototype.thumbnail = function(filenames, options){
this._thumbnails.push({filenames:filenames, options:options});
+ return this;
}
Media.prototype.transcode = function(cb){

0 comments on commit d990fa9

Please sign in to comment.