Common place to store browser features

The ol.BrowserFeature object is supposed to provide all detected browser features in a central place.
This commit is contained in:
ahocevar
2012-09-27 17:08:48 +02:00
parent fd411eb9ab
commit 9536ba8e14
2 changed files with 19 additions and 14 deletions
+10
View File
@@ -0,0 +1,10 @@
goog.provide('ol.BrowserFeature');
/**
* @type {Object}
*/
ol.BrowserFeature = {
// Do we have touch events?
HAS_TOUCH: document && 'ontouchstart' in document.documentElement
};