Fix faulty detection of touch device

This commit is contained in:
Toby Zerner 2015-06-25 15:34:14 +09:30
parent ad47f022b7
commit 679f7c6760

View File

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