Skip to content

Commit 423cd4d

Browse files
committed
Merge branch 'pace-progress-and-big-counter' of github.com:HubSpot/pace
Conflicts: pace.min.js
2 parents 5fe60d0 + 0ab2fb7 commit 423cd4d

5 files changed

Lines changed: 17 additions & 9 deletions

File tree

pace.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ class Bar
189189

190190
if not @lastRenderedProgress or @lastRenderedProgress|0 != @progress|0
191191
# The whole-part of the number has changed
192-
193-
el.setAttribute 'data-progress-text', "#{ @progress|0 }%"
192+
193+
el.children[0].setAttribute 'data-progress-text', "#{ @progress|0 }%"
194194

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

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

204204
@lastRenderedProgress = @progress
205205

pace.js

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

0 commit comments

Comments
 (0)