diff --git a/models/stopwatch.js b/models/stopwatch.js index 29ace51..d0be3a9 100644 --- a/models/stopwatch.js +++ b/models/stopwatch.js @@ -20,7 +20,7 @@ function Stopwatch() { // Use Underscore to bind all of our methods // to the proper context - _.bindAll(this); + _.bindAll(this, 'start', 'stop', 'reset', 'onTick', 'formatTime', 'getTime'); }; // --------------------------------------------- @@ -102,4 +102,4 @@ Stopwatch.prototype.getTime = function() { // --------------------------------------------- // Export // --------------------------------------------- -module.exports = Stopwatch; \ No newline at end of file +module.exports = Stopwatch;