Skip to content

Commit

Permalink
Merge branch 'pace-progress-and-big-counter' of github.com:HubSpot/pace
Browse files Browse the repository at this point in the history
Conflicts:
	pace.min.js
  • Loading branch information
zackbloom committed Oct 4, 2013
2 parents 5fe60d0 + 0ab2fb7 commit 423cd4d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pace.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ class Bar

if not @lastRenderedProgress or @lastRenderedProgress|0 != @progress|0
# The whole-part of the number has changed
el.setAttribute 'data-progress-text', "#{ @progress|0 }%"

el.children[0].setAttribute 'data-progress-text', "#{ @progress|0 }%"

if @progress >= 100
# We cap it at 99 so we can use prefix-based attribute selectors
Expand All @@ -199,7 +199,7 @@ class Bar
progressStr = if @progress < 10 then "0" else ""
progressStr += @progress|0

el.setAttribute 'data-progress', "#{ progressStr }"
el.children[0].setAttribute 'data-progress', "#{ progressStr }"

@lastRenderedProgress = @progress

Expand Down
6 changes: 3 additions & 3 deletions pace.js

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

Loading

0 comments on commit 423cd4d

Please sign in to comment.