Switched to spaces

This commit is contained in:
rr-
2015-06-28 10:07:11 +02:00
parent 79df9b56d3
commit 2702518e31
265 changed files with 14902 additions and 14902 deletions

View File

@ -2,43 +2,43 @@ var App = App || {};
App.Controls = App.Controls || {};
App.Presenters.ProgressPresenter = function(nprogress) {
var nesting = 0;
var nesting = 0;
function start() {
nesting ++;
function start() {
nesting ++;
if (nesting === 1) {
nprogress.start();
}
}
if (nesting === 1) {
nprogress.start();
}
}
function reset() {
nesting = 0;
}
function reset() {
nesting = 0;
}
function done() {
if (nesting) {
nesting --;
}
function done() {
if (nesting) {
nesting --;
}
if (nesting <= 0) {
nprogress.done();
} else {
nprogress.inc();
}
}
if (nesting <= 0) {
nprogress.done();
} else {
nprogress.inc();
}
}
window.setInterval(function() {
if (nesting <= 0) {
nprogress.done();
}
}, 1000);
window.setInterval(function() {
if (nesting <= 0) {
nprogress.done();
}
}, 1000);
return {
start: start,
done: done,
reset: reset,
};
return {
start: start,
done: done,
reset: reset,
};
};