1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-26 08:51:09 +02:00

Merge pull request #898 from tuchida/remove-global-userActivity_

Remove added userActivity_ to global
This commit is contained in:
Steve Heffernan 2013-12-16 15:52:08 -08:00
commit 950072ad97

View File

@ -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();
@ -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) {