Remove goog.isObject not in assertions

This commit is contained in:
Peter Robins
2016-07-16 09:31:27 +00:00
parent 34d5cc228e
commit 53a7aad431
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ ol.renderer.Layer.prototype.updateLogos = function(frameState, source) {
if (logo !== undefined) {
if (typeof logo === 'string') {
frameState.logos[logo] = '';
} else if (goog.isObject(logo)) {
} else if (logo !== null) {
goog.asserts.assertString(logo.href, 'logo.href is a string');
goog.asserts.assertString(logo.src, 'logo.src is a string');
frameState.logos[logo.src] = logo.href;