Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(progressbar): use max value on stacked progress bar #3830

Closed
wants to merge 3 commits into from

Conversation

groupsky
Copy link
Contributor

Fixes #3618

@wesleycho wesleycho added this to the 0.13.1 (Performance) milestone Jun 20, 2015
@wesleycho wesleycho self-assigned this Jun 20, 2015
@@ -32,6 +38,15 @@ angular.module('ui.bootstrap.progressbar', [])
this.removeBar = function(bar) {
this.bars.splice(this.bars.indexOf(bar), 1);
};

$scope.$watch('max', (function(self){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block is a bit awkward - why not use the self variable defined at the top of the controller?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't notice the reference. updated the PR

@wesleycho
Copy link
Contributor

Other than that minor issue, this LGTM.

@wesleycho wesleycho closed this in 36e0f0e Jun 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants