Skip to content

Commit 193a64c

Browse files
authored
Merge pull request #517 from PolymerElements/closure
fixes to make closure compiler happy
2 parents 168c2a4 + 17f1296 commit 193a64c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helpers/helpers.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@
133133
// This seems to only apply when using document scrolling.
134134
// Therefore, when should we remove the class from the document element?
135135

136-
window.cancelAnimationFrame(Polymer.AppLayout._scrollTimer);
136+
if (Polymer.AppLayout._scrollTimer) {
137+
window.cancelAnimationFrame(Polymer.AppLayout._scrollTimer);
138+
}
137139

138140
Polymer.AppLayout._scrollTimer = window.requestAnimationFrame(function() {
139141
headers.forEach(function(header) {

0 commit comments

Comments
 (0)