Rename ol.browserfeature to ol.has

This commit is contained in:
Tim Schaub
2014-08-21 14:46:10 -06:00
parent 403e87f697
commit 947b049799
21 changed files with 66 additions and 66 deletions
+3 -3
View File
@@ -1,17 +1,17 @@
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.browserfeature');
goog.require('ol.control');
goog.require('ol.dom.Input');
goog.require('ol.has');
goog.require('ol.layer.Tile');
goog.require('ol.source.OSM');
function checkWebGL(evt) {
document.getElementById('no-webgl').style.display =
ol.browserfeature.HAS_WEBGL ? 'none' : '';
ol.has.WEBGL ? 'none' : '';
document.getElementById('has-webgl').style.display =
ol.browserfeature.HAS_WEBGL && !evt.glContext ? '' : 'none';
ol.has.WEBGL && !evt.glContext ? '' : 'none';
document.getElementById('webgl').style.display =
evt.glContext ? '' : 'none';
}