intertween
Advanced tools
Comparing version 0.0.7 to 0.0.8
11
index.js
@@ -179,3 +179,3 @@ /** | ||
for (var i = 0, len = ev.length; i < len; i++) { | ||
var vs = s[i], | ||
var vs = s && s[i], | ||
ve = ev[i]; | ||
@@ -190,4 +190,5 @@ rv[i] = typeof ve === 'string' && ve.indexOf('=') === 1 ? ve : null; | ||
} | ||
var minLength = Math.min(sv.length, ev.length); | ||
return function (t) { | ||
for (var i = 0, len = ev.length; i < len; i++) { | ||
for (var i = 0; i < a && a.update ? a.update(t) : b && b.update ? b.update(t) : b; i++) { | ||
var a = s[i], | ||
@@ -199,3 +200,3 @@ b = ev[i], | ||
sv[i] = typeof a === 'number' ? (((a + (b - a) * t) * d) | 0) / | ||
d : typeof a === 'function' ? a(t) : a.update ? a.update(t) : b; | ||
d : typeof a === 'function' ? a(t) : a && a.update ? a.update(t) : b && b.update ? b.update(t) : b; | ||
if (r && t === 1) { | ||
@@ -241,3 +242,3 @@ s[i] = b; | ||
for (var i in ev) { | ||
s[i] = sv[i]; | ||
s[i] = sv && sv[i]; | ||
var vs = s[i], | ||
@@ -260,3 +261,3 @@ ve = ev[i]; | ||
sv[i] = typeof a === 'number' ? (((a + (b - a) * t) * d) | 0) / | ||
d : typeof a === 'function' ? a(t) : a.update ? a.update(t) : b; | ||
d : typeof a === 'function' ? a(t) : a && a.update ? a.update(t) : b && b.update ? b.update(t) : b; | ||
if (r && t === 1) { | ||
@@ -263,0 +264,0 @@ s[i] = b; |
{ | ||
"name": "intertween", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "The lightweight, fastest, smartest, effecient value interpolator with no-dependecy, zero-configuration and relative interpolation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
16950
272