Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.

Commit 05afaa5

Browse files
committed
Merge pull request #8 from PolymerElements/fix-comments
don't panic at comment nodes
2 parents 7f4cf9c + 9f6381b commit 05afaa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iron-swipeable-container.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
},
145145

146146
_addListeners: function(node) {
147-
if (node.nodeType === Node.TEXT_NODE)
147+
if (node.nodeType === Node.TEXT_NODE || node.nodeType === Node.COMMENT_NODE)
148148
return;
149149
// Set up the animation.
150150
node.style.transitionProperty = this._transitionProperty;

0 commit comments

Comments
 (0)