Skip to content

Commit

Permalink
bump the version and minify the files
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto committed Sep 3, 2015
1 parent 7c51cc0 commit 71a64d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-svg-round-progressbar",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "https://github.com/crisbeto/angular-svg-round-progressbar",
"authors": [
"crisbeto"
Expand Down
8 changes: 5 additions & 3 deletions build/roundProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,12 @@ angular.module('angular-svg-round-progress')
"width": responsive ? "100%" : (diameter + "px"),
"height": responsive ? "100%" : (isSemicircle ? radius : diameter) + "px",
"overflow": "hidden" // on some browsers the background overflows, if in semicircle mode
}).attr({
viewBox: "0 0 " + diameter + " " + (isSemicircle ? radius : diameter)
});

// note that we can't use .attr, because if jQuery is loaded, it lowercases all attributes
// and viewBox is case-sensitive
svg[0].setAttribute('viewBox', '0 0 ' + diameter + ' ' + (isSemicircle ? radius : diameter));

element.css({
"width": responsive ? "100%" : "auto",
"position": "relative",
Expand Down Expand Up @@ -365,7 +367,7 @@ angular.module('angular-svg-round-progress')

var easingAnimation = service.animations[options.animation];
var startTime = new Date();
var duration = parseInt(options.duration);
var duration = parseInt(options.duration) || 0;
var preventAnimation = (newValue > max && oldValue > max) || (newValue < 0 && oldValue < 0) || duration < 25;

var radius = options.radius;
Expand Down
4 changes: 2 additions & 2 deletions build/roundProgress.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-svg-round-progressbar",
"version": "0.3.1",
"version": "0.3.2",
"description": "AngularJS module that uses SVG to create a circular progressar",
"main": "roundProgress.js",
"scripts": {},
Expand Down

0 comments on commit 71a64d9

Please sign in to comment.