remove pointless regex stuff

This commit is contained in:
Damien Churchill 2009-02-21 03:43:58 +00:00
parent ce2e089d63
commit 72690f5328

View File

@ -43,7 +43,6 @@ var tpl = '<div class="x-progress-wrap">' +
'</div>';
function progress(value, p, r) {
var width = p['style'].match(/width:\s*(\d+)px/)[1].toInt()
var progress = value.toInt();
return String.format(tpl, value.toFixed(2), r.data['state'], progress);
}