Use native JSON.parse function

This commit is contained in:
Frederic Junod
2014-03-26 15:29:46 +01:00
parent 36305f7efe
commit 0062759f75
3 changed files with 17 additions and 2 deletions
+9
View File
@@ -151,6 +151,15 @@ ol.BrowserFeature.HAS_DOM = ol.ENABLE_DOM;
ol.BrowserFeature.HAS_GEOLOCATION = 'geolocation' in goog.global.navigator;
/**
* @const
* @type {boolean}
* @todo stability experimental
*/
ol.BrowserFeature.HAS_JSON_PARSE =
'JSON' in goog.global && 'parse' in goog.global.JSON;
/**
* True if browser supports touch events.
* @const