Skip to content

Commit 71a64d9

Browse files
author
crisbeto
committed
bump the version and minify the files
1 parent 7c51cc0 commit 71a64d9

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-svg-round-progressbar",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"homepage": "https://github.com/crisbeto/angular-svg-round-progressbar",
55
"authors": [
66
"crisbeto"

build/roundProgress.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,12 @@ angular.module('angular-svg-round-progress')
325325
"width": responsive ? "100%" : (diameter + "px"),
326326
"height": responsive ? "100%" : (isSemicircle ? radius : diameter) + "px",
327327
"overflow": "hidden" // on some browsers the background overflows, if in semicircle mode
328-
}).attr({
329-
viewBox: "0 0 " + diameter + " " + (isSemicircle ? radius : diameter)
330328
});
331329

330+
// note that we can't use .attr, because if jQuery is loaded, it lowercases all attributes
331+
// and viewBox is case-sensitive
332+
svg[0].setAttribute('viewBox', '0 0 ' + diameter + ' ' + (isSemicircle ? radius : diameter));
333+
332334
element.css({
333335
"width": responsive ? "100%" : "auto",
334336
"position": "relative",
@@ -365,7 +367,7 @@ angular.module('angular-svg-round-progress')
365367

366368
var easingAnimation = service.animations[options.animation];
367369
var startTime = new Date();
368-
var duration = parseInt(options.duration);
370+
var duration = parseInt(options.duration) || 0;
369371
var preventAnimation = (newValue > max && oldValue > max) || (newValue < 0 && oldValue < 0) || duration < 25;
370372

371373
var radius = options.radius;

build/roundProgress.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-svg-round-progressbar",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "AngularJS module that uses SVG to create a circular progressar",
55
"main": "roundProgress.js",
66
"scripts": {},

0 commit comments

Comments
 (0)