Skip to content

Commit

Permalink
Update version to 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
victorb committed Sep 26, 2014
1 parent 271e8ee commit 8e4c9ec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 95 deletions.
22 changes: 11 additions & 11 deletions build/ngProgress.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
ngProgress 1.0.6 - slim, site-wide progressbar for AngularJS
ngProgress 1.0.7 - slim, site-wide progressbar for AngularJS
(C) 2013 - Victor Bjelkholm
License: MIT
Source: https://github.com/VictorBjelkholm/ngProgress
Date Compiled: 2014-08-27
Date Compiled: 2014-09-26
*/
angular.module('ngProgress.provider', ['ngProgress.directive'])
.provider('ngProgress', function () {
Expand All @@ -28,7 +28,7 @@ angular.module('ngProgress.provider', ['ngProgress.directive'])
// Compile the directive
var progressbarEl = $compile('<ng-progress></ng-progress>')($scope);
// Add the element to body
parent.appendChild(progressbarEl[0]);
parent.appendChild(progressbarEl[0]);
// Set the initial height
$scope.count = count;
// If height or color isn't undefined, set the height, background-color and color.
Expand Down Expand Up @@ -160,14 +160,14 @@ angular.module('ngProgress.provider', ['ngProgress.directive'])
return count;
},
//set the parent of the directive, sometimes body is not sufficient
setParent: function (newParent) {
if (newParent === null || newParent === undefined) {
setParent: function(newParent) {
if(newParent === null || newParent === undefined) {
throw new Error('Provide a valid parent of type HTMLElement');
}

if (parent !== null && parent !== undefined) {
if(parent !== null && parent !== undefined) {
parent.removeChild(progressbarEl[0]);
}
}

parent = newParent;
parent.appendChild(progressbarEl[0]);
Expand All @@ -177,20 +177,20 @@ angular.module('ngProgress.provider', ['ngProgress.directive'])
}
};
}];

this.setColor = function (color) {
if (color !== undefined) {
this.color = color;
}

return this.color;
};

this.setHeight = function (height) {
if (height !== undefined) {
this.height = height;
}

return this.height;
};
});
Expand Down
86 changes: 3 additions & 83 deletions build/ngProgress.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": "ngProgress",
"version": "1.0.6",
"version": "1.0.7",
"description": "slim, site-wide progressbar for AngularJS",
"main": "ngProgress.js",
"repository": {
Expand Down

0 comments on commit 8e4c9ec

Please sign in to comment.