Use no browser globals at all

This commit is contained in:
ahocevar
2013-04-10 16:53:45 +02:00
parent dc1d7a1aba
commit a437bea61f
4 changed files with 7 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ ol.BrowserFeature = {
* @type {boolean}
*/
HAS_TOUCH: ol.ASSUME_TOUCH ||
(goog.global.document && 'ontouchstart' in document.documentElement) ||
(goog.global.document &&
'ontouchstart' in goog.global.document.documentElement) ||
!!(goog.global.navigator.msPointerEnabled)
};