remove pointless regex stuff
This commit is contained in:
parent
ce2e089d63
commit
72690f5328
@ -43,7 +43,6 @@ var tpl = '<div class="x-progress-wrap">' +
|
|||||||
'</div>';
|
'</div>';
|
||||||
|
|
||||||
function progress(value, p, r) {
|
function progress(value, p, r) {
|
||||||
var width = p['style'].match(/width:\s*(\d+)px/)[1].toInt()
|
|
||||||
var progress = value.toInt();
|
var progress = value.toInt();
|
||||||
return String.format(tpl, value.toFixed(2), r.data['state'], progress);
|
return String.format(tpl, value.toFixed(2), r.data['state'], progress);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user