Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
fgnass committed Aug 19, 2013
1 parent 8e142aa commit 10c315c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spin.js",
"version": "1.3.0",
"version": "1.3.1",
"main": "./dist/spin.js",
"dependencies": {},
"readme": "README.md",
Expand Down
14 changes: 10 additions & 4 deletions dist/spin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//fgnass.github.com/spin.js#v1.3
//fgnass.github.com/spin.js#v1.3.1

/**
* Copyright (c) 2011-2013 Felix Gnass
Expand Down Expand Up @@ -130,6 +130,13 @@
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 = {
Expand Down Expand Up @@ -259,8 +266,7 @@
})

if (o.shadow) ins(seg, css(fill('#000', '0 0 4px ' + '#000'), {top: 2+'px'}))

ins(el, ins(seg, fill(o.color, '0 0 1px rgba(0,0,0,.1)')))
ins(el, ins(seg, fill(getColor(o.color, i), '0 0 1px rgba(0,0,0,.1)')))
}
return el
},
Expand Down Expand Up @@ -314,7 +320,7 @@
top: -o.width>>1,
filter: filter
}),
vml('fill', {color: o.color, opacity: o.opacity}),
vml('fill', {color: getColor(o.color, i), opacity: o.opacity}),
vml('stroke', {opacity: 0}) // transparent stroke to fix color bleeding upon opacity change
)
)
Expand Down
2 changes: 1 addition & 1 deletion dist/spin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "spin.js",
"version": "1.3.1",
"main": "spin.js",
"directories": {
"example": "example"
},
"repository": {
"type": "git",
"url": "git://github.com/fgnass/spin.js.git"
},
"keywords": [
"spin",
"spinner",
"component"
],
"component": {
"scripts": {
"spin": "spin.js"
}
}
}

0 comments on commit 10c315c

Please sign in to comment.