~unityfox-hackers/unityfox/trunk

« back to all changes in this revision

Viewing changes to bootstrap.js

  • Committer: Chris Coulson
  • Date: 2012-01-19 12:01:48 UTC
  • Revision ID: chris.coulson@canonical.com-20120119120148-dkq7zfaaanwkxwex
Use strict mode everywhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 * 
38
38
 * ***** END LICENSE BLOCK ***** */
39
39
 
 
40
"use strict";
 
41
 
40
42
const Cu = Components.utils;
41
43
const Ci = Components.interfaces;
42
44
const Cc = Components.classes;
165
167
    }
166
168
 
167
169
    this.setCount(count == 0 ? null : count);
168
 
    progress = (totalSize == 0 || count == 0) ? null : (totalTransferred / totalSize);
 
170
    let progress = (totalSize == 0 || count == 0) ? null : (totalTransferred / totalSize);
169
171
    if (progress) {
170
172
      LOG("Download progress = " + (progress * 100).toString() + "%");
171
173
    }