Permalink
Browse files

Fixed touch support test, was overriding the wrong property on the wr…

…ong object
  • Loading branch information...
1 parent 4638baa commit ddb62b4320681dd6af11395450dbf9817f11da47 @gseguin gseguin committed Aug 9, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 tests/unit/support/support_core.js
@@ -47,9 +47,7 @@ $.testHelper.excludeFileProtocol(function(){
});
asyncTest( "detects touch", function() {
- $.extend(window, {
- touchend: true
- });
+ document.ontouchend = true;
$.testHelper.reloadModule( "jquery.mobile.support.touch" ).done( function() {
ok( $.mobile.support.touch, "touch is supported" );

0 comments on commit ddb62b4

Please sign in to comment.