Skip to content

Commit

Permalink
removing dependance on jQuery mobiles $.support.touch
Browse files Browse the repository at this point in the history
  • Loading branch information
jcblw committed Dec 15, 2012
1 parent 3bafa80 commit b9b2434
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
node_modules

1 change: 0 additions & 1 deletion index.html
Expand Up @@ -9,7 +9,6 @@
}
</style>
<script src=https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js></script>
<script src=jQuery.mobile.js></script>
<script src=zoomy.js></script>

<h1>Test Page</h1>
Expand Down
2 changes: 1 addition & 1 deletion zoomy.js
Expand Up @@ -44,7 +44,7 @@
zoomStop : null // callback for when the zoom ends
},
//Test for touch
touch = (typeof($.support.touch) === 'boolean') ? ($.support.touch) ? true : false : false,
touch = (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) ? true : false,

//Change default event on touch
defaultEvent = (touch) ? 'touchstart' : 'click',
Expand Down

0 comments on commit b9b2434

Please sign in to comment.