From e29d08f6bfcaae7cea3187f4aa57737e08c405cb Mon Sep 17 00:00:00 2001 From: thednp Date: Wed, 7 Sep 2016 19:09:41 +0300 Subject: [PATCH] Quick docs update --- extend.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extend.html b/extend.html index 5569e23..5756ded 100644 --- a/extend.html +++ b/extend.html @@ -217,7 +217,7 @@ K.pp['boxShadow'] = function(property,value,element){ // let's start with the numbers | set unit | also determine inset var numbers = [], px = 'px', // the unit is always px - inset = a[5] !== 'none' || w._vE[p][5] !== 'none' ? ' inset' : false; + inset = a[5] !== 'none' || b[5] !== 'none' ? ' inset' : false; for (var i=0; i<4; i++){ // for boxShadow coordinates we do the math for an array of numbers numbers.push( (a[i] + (b[i] - a[i]) * v ) + px); @@ -227,12 +227,12 @@ K.pp['boxShadow'] = function(property,value,element){ // now we handle the color var colorValue, _color = {}; - for (var c in w._vE[p][4]) { - _color[c] = parseInt(w._vS[p][4][c] + (w._vE[p][4][c] - w._vS[p][4][c]) * v )||0; + for (var c in b[4]) { + _color[c] = parseInt(a[4][c] + (b[4][c] - a[4][c]) * v )||0; } colorValue = 'rgb(' + _color.r + ',' + _color.g + ',' + _color.b + ') '; // for color interpolation, starting with v1.5.3 we can cut it short to this - // var colorValue = K.Interpolate.color(a[5],b[5],v); + // var colorValue = K.Interpolate.color(a[4],b[4],v); // last piece of the puzzle, the DOM update l.style[_boxShadow] = inset ? colorValue + numbers.join(' ') + inset : colorValue + numbers.join(' ');