Merge pull request #5837 from tschaub/global

Remove ol.global
This commit is contained in:
Tim Schaub
2016-09-02 21:18:26 -06:00
committed by GitHub
20 changed files with 55 additions and 96 deletions

View File

@@ -288,15 +288,3 @@ ol.getUid = function(obj) {
* @private
*/
ol.uidCounter_ = 0;
/**
* @see https://github.com/tc39/proposal-global
*/
if (typeof window !== 'undefined') {
ol.global = window;
} else if (typeof global !== 'undefined') {
ol.global = global;
} else if (typeof self !== 'undefined') {
ol.global = self;
}