One more cosmetic tweak and fix 'make lint' complaints.

This commit is contained in:
gigaherz 2012-03-22 00:05:24 +01:00
parent ce8b0625b1
commit ecaf467a13
2 changed files with 9 additions and 8 deletions

View File

@ -400,7 +400,6 @@ canvas {
display: inline-block; display: inline-block;
border: 1px solid black; border: 1px solid black;
clear: both; clear: both;
padding: 1px;
line-height: 0; line-height: 0;
} }

View File

@ -32,14 +32,14 @@ var ProgressBar = (function ProgressBarClosure() {
function clamp(v, min, max) { function clamp(v, min, max) {
return Math.min(Math.max(v, min), max); return Math.min(Math.max(v, min), max);
} }
function sizeBar(bar, num, width, height, units) { function sizeBar(bar, num, width, height, units) {
var progress = bar.querySelector('#progress'); var progress = bar.querySelector('#progress');
var remaining = bar.querySelector('#remaining'); var remaining = bar.querySelector('#remaining');
progress.style.height=height + units; progress.style.height = height + units;
remaining.style.height=height + units; remaining.style.height = height + units;
progress.style.width=num + units; progress.style.width = num + units;
remaining.style.width=(width - num) + units; remaining.style.width = (width - num) + units;
} }
function ProgressBar(element, min, max, width, height, units) { function ProgressBar(element, min, max, width, height, units) {
@ -304,8 +304,10 @@ var PDFView = {
document.title = this.url = url; document.title = this.url = url;
// FIXME: Probably needs a better place to get initialized // FIXME: Probably needs a better place to get initialized
if(!PDFView.loadingProgress) { if (!PDFView.loadingProgress) {
PDFView.loadingProgress = new ProgressBar(document.getElementById('loadingBar'), 0, 100, 15, 1.5, 'em'); PDFView.loadingProgress = new ProgressBar(
document.getElementById('loadingBar'),
0, 100, 15, 1.5, 'em');
} }
var self = this; var self = this;