From 679f7c6760d4e75ea1e2638fc569fdf80ff0c7db Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 25 Jun 2015 15:34:14 +0930 Subject: [PATCH] Fix faulty detection of touch device --- framework/core/js/forum/src/components/discussion-list-item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/discussion-list-item.js b/framework/core/js/forum/src/components/discussion-list-item.js index 1ebadb6f4..319debb89 100644 --- a/framework/core/js/forum/src/components/discussion-list-item.js +++ b/framework/core/js/forum/src/components/discussion-list-item.js @@ -113,7 +113,7 @@ export default class DiscussionListItem extends Component { config(element, isInitialized, context) { if (isInitialized) return; - if (window.ontouchstart !== 'undefined') { + if ('ontouchstart' in window) { this.$().addClass('slidable'); var slidableInstance = slidable(element);