Skip to content

Commit

Permalink
Make sure that vjs.TOUCH_ENABLED is a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Oct 10, 2013
1 parent c5a8cff commit e37e870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ vjs.IS_OLD_ANDROID = vjs.IS_ANDROID && (/webkit/i).test(vjs.USER_AGENT) && vjs.A
vjs.IS_FIREFOX = (/Firefox/i).test(vjs.USER_AGENT);
vjs.IS_CHROME = (/Chrome/i).test(vjs.USER_AGENT);

vjs.TOUCH_ENABLED = (('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch);
vjs.TOUCH_ENABLED = !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch);

/**
* Get an element's attribute values, as defined on the HTML tag
Expand Down

0 comments on commit e37e870

Please # to comment.