There was an error while loading. Please reload this page.
1 parent d3308e6 commit 4c6e030Copy full SHA for 4c6e030
1 file changed
pace.coffee
@@ -167,8 +167,8 @@ class Bar
167
168
if not @lastRenderedProgress or @lastRenderedProgress|0 != @progress|0
169
# The whole-part of the number has changed
170
-
171
- el.setAttribute 'data-progress-text', "#{ @progress|0 }%"
+
+ el.children[0].setAttribute 'data-progress-text', "#{ @progress|0 }%"
172
173
if @progress >= 100
174
# We cap it at 99 so we can use prefix-based attribute selectors
@@ -177,7 +177,7 @@ class Bar
177
progressStr = if @progress < 10 then "0" else ""
178
progressStr += @progress|0
179
180
- el.setAttribute 'data-progress', "#{ progressStr }"
+ el.children[0].setAttribute 'data-progress', "#{ progressStr }"
181
182
@lastRenderedProgress = @progress
183
0 commit comments