Allow '' for crossOrigin (as Anonymous alias)

This fixes a regression introduced by the goog.isDef removal.

From the HTML 5 spec: "The empty string is also a valid keyword, and
maps to the Anonymous state"
This commit is contained in:
Andreas Hocevar
2015-11-17 12:36:29 +01:00
parent 17e69f9326
commit 749dacc749
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ ol.style.IconImage_ = function(image, src, size, crossOrigin, imageState) {
*/
this.image_ = !image ? new Image() : image;
if (crossOrigin) {
if (crossOrigin !== null) {
this.image_.crossOrigin = crossOrigin;
}