openlayers/ol3 — pull request #1870 by fredj (2014-03-17 14:11:36+00:00)
Title: Fix ol.BrowserFeature.HAS_TOUCH detection code

Use goog.global instead goog.global.document.documentElement to avoid
false negative results when using the chrome development tools (Touch
Events emulation).

Code borrowed from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
except for the DocumentTouch part which is deprecated (https://developer.mozilla.org/en-US/docs/Web/API/DocumentTouch)

Fixes #1869