Valerii Vasin (valerii) wrote in changelog,
Valerii Vasin
valerii
changelog

[livejournal] r23561: LJSUP-14868: Fix LJ.Support.touch behavi...

Committer: vvasin
LJSUP-14868: Fix LJ.Support.touch behavior.
U   trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js	2013-01-17 14:25:15 UTC (rev 23560)
+++ trunk/htdocs/js/basic.js	2013-01-18 09:19:36 UTC (rev 23561)
@@ -961,7 +961,7 @@
 
 LJ.Support.geoLocation = 'geolocation' in navigator;
 //Incomplete implementation from modernizr
-LJ.Support.touch = ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch;
+LJ.Support.touch = Boolean(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch);
 LJ.Support.cors = window.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest();
 LJ.Support.history = !!window.history.pushState;
 

Tags: invis89, js, livejournal, vvasin
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments