Skip to content

Commit

Permalink
Merge pull request #898 from tuchida/remove-global-userActivity_
Browse files Browse the repository at this point in the history
Remove added userActivity_ to global
  • Loading branch information
heff committed Dec 16, 2013
2 parents a106924 + 491b9b2 commit 950072a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ vjs.Player.prototype.listenForUserActivity = function(){
var onMouseActivity, onMouseDown, mouseInProgress, onMouseUp,
activityCheck, inactivityTimeout;

onMouseActivity = this.reportUserActivity;
onMouseActivity = vjs.bind(this, this.reportUserActivity);

onMouseDown = function() {
onMouseActivity();
Expand All @@ -1297,7 +1297,7 @@ vjs.Player.prototype.listenForUserActivity = function(){
// Setting userActivity=true now and setting the interval to the same time
// as the activityCheck interval (250) should ensure we never miss the
// next activityCheck
mouseInProgress = setInterval(vjs.bind(this, onMouseActivity), 250);
mouseInProgress = setInterval(this, onMouseActivity, 250);
};

onMouseUp = function(event) {
Expand Down

0 comments on commit 950072a

Please sign in to comment.