소스 검색

end or null

Noah 7 년 전
부모
커밋
15c5c0a91d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      audiogram/index.js

+ 1 - 1
audiogram/index.js 파일 보기

@@ -159,7 +159,7 @@ Audiogram.prototype.render = function(cb) {
159 159
 
160 160
   // If the audio needs to be clipped, clip it first and update the path
161 161
   if (this.settings.start || this.settings.end) {
162
-    q.defer(this.trimAudio.bind(this), this.settings.start || 0, this.settings.end);
162
+    q.defer(this.trimAudio.bind(this), this.settings.start || 0, this.settings.end || null);
163 163
   }
164 164
 
165 165
   // Get the audio's duration for computing number of frames