Remove FastClick from mobile-full-screen example

This commit is contained in:
Frederic Junod
2016-04-04 16:31:28 +02:00
parent 825d525d3f
commit 4b832708e5
6 changed files with 0 additions and 38 deletions

View File

@@ -17,7 +17,6 @@
"externs/closure-compiler.js",
"externs/esrijson.js",
"externs/example.js",
"externs/fastclick.js",
"externs/geojson.js",
"externs/jquery-1.9.js",
"externs/proj4js.js",

View File

@@ -17,7 +17,6 @@
"externs/closure-compiler.js",
"externs/esrijson.js",
"externs/example.js",
"externs/fastclick.js",
"externs/geojson.js",
"externs/jspdf.js",
"externs/jquery-1.9.js",

View File

@@ -1,6 +1,5 @@
{
"globals": {
"FastClick": false,
"$": false,
"arc": false,
"common": false,

View File

@@ -26,7 +26,6 @@ cloak:
<div id="map" class="map"></div>
<script src="https://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="./resources/common.js" type="text/javascript"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js" type="text/javascript"></script>
<script src="loader.js?id=mobile-full-screen" type="text/javascript"></script>
</body>
</html>

View File

@@ -32,11 +32,3 @@ geolocation.once('change:position', function() {
view.setCenter(geolocation.getPosition());
view.setResolution(2.388657133911758);
});
// Use FastClick to eliminate the 300ms delay between a physical tap
// and the firing of a click event on mobile browsers.
// See http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-away
// for more information.
document.addEventListener('DOMContentLoaded', function() {
FastClick.attach(document.body);
});

View File

@@ -1,26 +0,0 @@
/**
* @fileoverview Externs for FastClick 1.0.6
* @see https://github.com/ftlabs/fastclick
* @externs
*/
/**
* @type {Object}
* @const
*/
var FastClick = {};
/**
* @typedef {{
* touchBoundary: (number|undefined),
* tapDelay: (number|undefined),
* tapTimeout: (number|undefined)
* }}
*/
FastClick.AttachOptions;
/**
* @param {Element} layer
* @param {FastClick.AttachOptions=} opt_options
*/
FastClick.attach = function(layer, opt_options) {};