Reduce closure dependency, fix GET issue

This commit is contained in:
Samuel Lapointe
2016-05-02 09:34:58 -04:00
parent 3a1ff59cfb
commit f835d86333
4 changed files with 9 additions and 8 deletions

View File

@@ -1490,8 +1490,8 @@ ol.Map.createOptionsInternal = function(options) {
var logo = options.logo;
if (typeof logo === 'string') {
logos[logo] = '';
} else if (goog.dom.isElement(logo)) {
logos['logo'] = logo;
} else if (logo instanceof HTMLElement) {
logos[goog.getUid(logo).toString()] = logo;
} else if (goog.isObject(logo)) {
goog.asserts.assertString(logo.href, 'logo.href should be a string');
goog.asserts.assertString(logo.src, 'logo.src should be a string');