Skip to content

Updated stopwatch.js#5

Open
shaunidiot wants to merge 1 commit intorobdodson:masterfrom
shaunidiot:patch-1
Open

Updated stopwatch.js#5
shaunidiot wants to merge 1 commit intorobdodson:masterfrom
shaunidiot:patch-1

Conversation

@shaunidiot
Copy link

Comment: http://robdodson.me/building-a-countdown-timer-with-socket-dot-io-pt-2/#comment-1289598915

Since Underscore.js 1.5.0, _.bindAll requires that you pass in the object and the names of the methods to bind on the object. In previous versions, like yours I'm guessing, there method names were optional.

_.bindAll(this, 'start', 'stop', 'reset', 'onTick', 'formatTime', 'getTime');
will fix this problem!

Comment: http://robdodson.me/building-a-countdown-timer-with-socket-dot-io-pt-2/#comment-1289598915

Since Underscore.js 1.5.0, _.bindAll requires that you pass in the object and the names of the methods to bind on the object. In previous versions, like yours I'm guessing, there method names were optional.

_.bindAll(this, 'start', 'stop', 'reset', 'onTick', 'formatTime', 'getTime');
will fix this problem!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant