Replace goog.object.isEmpty() with ol.object.isEmpty()

This commit is contained in:
Tim Schaub
2016-02-03 21:17:32 -07:00
parent 0dce343d4f
commit 8aecb3270c
17 changed files with 71 additions and 47 deletions

View File

@@ -5,11 +5,11 @@ goog.provide('ol.proj.ProjectionLike');
goog.provide('ol.proj.Units');
goog.require('goog.asserts');
goog.require('goog.object');
goog.require('ol');
goog.require('ol.Extent');
goog.require('ol.TransformFunction');
goog.require('ol.extent');
goog.require('ol.object');
goog.require('ol.sphere.NORMAL');
@@ -630,7 +630,7 @@ ol.proj.removeTransform = function(source, destination) {
'destinationCode should be in transforms of sourceCode');
var transform = transforms[sourceCode][destinationCode];
delete transforms[sourceCode][destinationCode];
if (goog.object.isEmpty(transforms[sourceCode])) {
if (ol.object.isEmpty(transforms[sourceCode])) {
delete transforms[sourceCode];
}
return transform;