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;