diff options
author | marijus <mario@localhost.localdomain> | 2013-12-02 12:27:12 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2013-12-02 12:27:12 +0100 |
commit | d525d1c26f2b67579ff5911dc81958c4fa1e9c6f (patch) | |
tree | a3a9ebe79a25e068c0237583b71fad9101e70f43 /js/spin.js | |
parent | ba895d6668b2f3b99121d9115201022f6fbc8728 (diff) | |
download | volse-hubzilla-d525d1c26f2b67579ff5911dc81958c4fa1e9c6f.tar.gz volse-hubzilla-d525d1c26f2b67579ff5911dc81958c4fa1e9c6f.tar.bz2 volse-hubzilla-d525d1c26f2b67579ff5911dc81958c4fa1e9c6f.zip |
Revert "update spin.js to latest version"
This reverts commit 51cad9cafef228090cc1641a425ba272b1a3b470.
Diffstat (limited to 'js/spin.js')
-rw-r--r-- | js/spin.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/js/spin.js b/js/spin.js index af1c55f06..c66c607a7 100644 --- a/js/spin.js +++ b/js/spin.js @@ -1,4 +1,4 @@ -//fgnass.github.com/spin.js#v1.3.2 +//fgnass.github.com/spin.js#v1.3 /** * Copyright (c) 2011-2013 Felix Gnass @@ -89,12 +89,12 @@ , pp , i + if(s[prop] !== undefined) return prop prop = prop.charAt(0).toUpperCase() + prop.slice(1) for(i=0; i<prefixes.length; i++) { pp = prefixes[i]+prop if(s[pp] !== undefined) return pp } - if(s[prop] !== undefined) return prop } /** @@ -130,13 +130,6 @@ return o } - /** - * Returns the line color from the given string or array. - */ - function getColor(color, idx) { - return typeof color == 'string' ? color : color[idx % color.length] - } - // Built-in defaults var defaults = { @@ -266,7 +259,8 @@ }) if (o.shadow) ins(seg, css(fill('#000', '0 0 4px ' + '#000'), {top: 2+'px'})) - ins(el, ins(seg, fill(getColor(o.color, i), '0 0 1px rgba(0,0,0,.1)'))) + + ins(el, ins(seg, fill(o.color, '0 0 1px rgba(0,0,0,.1)'))) } return el }, @@ -320,7 +314,7 @@ top: -o.width>>1, filter: filter }), - vml('fill', {color: getColor(o.color, i), opacity: o.opacity}), + vml('fill', {color: o.color, opacity: o.opacity}), vml('stroke', {opacity: 0}) // transparent stroke to fix color bleeding upon opacity change ) ) |