Skip to content

Commit b5e24c7

Browse files
Elliott Marqueze111077
authored andcommitted
fix tag name never matching
1 parent f174c44 commit b5e24c7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

google-map-poly.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,15 @@
487487
this._building = true;
488488
this.path.clear();
489489
for (var i = 0, point; point = this._points[i]; ++i) {
490-
if (point.tagName == 'google-map-point')
491-
this.path.push(point.getPosition());
490+
var tagName = point.tagName;
491+
492+
if (tagName) {
493+
tagName = tagName.toLowerCase();
494+
495+
if (tagName == 'google-map-point') {
496+
this.path.push(point.getPosition());
497+
}
498+
}
492499
}
493500
this._building = false;
494501

0 commit comments

Comments
 (0)