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

View File

@@ -45,9 +45,10 @@ ol.webgl.getContext = function(canvas, opt_attributes) {
/**
* @return {boolean} Is supported.
* @const
* @type {boolean} Is supported.
*/
ol.webgl.isSupported = function() {
ol.webgl.SUPPORTED = (function() {
if (!('WebGLRenderingContext' in goog.global)) {
return false;
}
@@ -57,4 +58,4 @@ ol.webgl.isSupported = function() {
} catch (e) {
return false;
}
};
})();