Rename ol.*.isSupported function to ol.*.SUPPORTED const

This commit is contained in:
Frederic Junod
2013-02-19 16:14:37 +01:00
parent a55a6bda3b
commit 7e3dcf36a0
6 changed files with 26 additions and 23 deletions
+4 -3
View File
@@ -5,9 +5,10 @@ goog.require('goog.dom.TagName');
/**
* @return {boolean} Is supported.
* @const
* @type {boolean} Is supported.
*/
ol.canvas.isSupported = function() {
ol.canvas.SUPPORTED = (function() {
if (!('HTMLCanvasElement' in goog.global)) {
return false;
}
@@ -18,4 +19,4 @@ ol.canvas.isSupported = function() {
} catch (e) {
return false;
}
};
})();