ag-timemachine
Advanced tools
Comparing version 1.0.79 to 1.0.80
{ | ||
"name": "ag-timemachine", | ||
"version": "1.0.79", | ||
"version": "1.0.80", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -115,6 +115,7 @@ "use strict"; | ||
var _this = this; | ||
var pre = this.frames.reverse().find(function (f) { return f.getTime() < _this.target.getTime(); }); | ||
if (!pre) | ||
var reverse = this.frames.reverse(); | ||
var pre = reverse.findIndex(function (f) { return f.getTime() < _this.target.getTime(); }); | ||
if (pre < 0) | ||
return; | ||
this.buffer.target.value = pre; | ||
this.buffer.target.value = reverse.length > pre + 1 ? reverse[pre + 1] : reverse[pre]; | ||
this.align(); | ||
@@ -121,0 +122,0 @@ }; |
73451
1616