aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/are-we-there-yet/lib/tracker.js
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/are-we-there-yet/lib/tracker.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/are-we-there-yet/lib/tracker.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/are-we-there-yet/lib/tracker.js b/sandbox/testAppNevena/Front/node_modules/are-we-there-yet/lib/tracker.js
deleted file mode 100644
index a8f8b3ba..00000000
--- a/sandbox/testAppNevena/Front/node_modules/are-we-there-yet/lib/tracker.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict'
-var util = require('util')
-var TrackerBase = require('./tracker-base.js')
-
-var Tracker = module.exports = function (name, todo) {
- TrackerBase.call(this, name)
- this.workDone = 0
- this.workTodo = todo || 0
-}
-util.inherits(Tracker, TrackerBase)
-
-Tracker.prototype.completed = function () {
- return this.workTodo === 0 ? 0 : this.workDone / this.workTodo
-}
-
-Tracker.prototype.addWork = function (work) {
- this.workTodo += work
- this.emit('change', this.name, this.completed(), this)
-}
-
-Tracker.prototype.completeWork = function (work) {
- this.workDone += work
- if (this.workDone > this.workTodo) {
- this.workDone = this.workTodo
- }
- this.emit('change', this.name, this.completed(), this)
-}
-
-Tracker.prototype.finish = function () {
- this.workTodo = this.workDone = 1
- this.emit('change', this.name, 1, this)
-}