Skip to content

Commit c651448

Browse files
author
felix
committed
Avoid es6 syntaxe
1 parent b78372f commit c651448

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iron-scroll-spy-behavior.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
},
7979
_findSpiedIndex: function() {
8080
var scrollTargetHalfHeight = this.scrollTarget.clientHeight/2;
81-
for (item of this.items) {
81+
for (var i in this.items) {
82+
var item = this.items[i];
8283
var top = item.offsetTop;
8384
var height = item.clientHeight;
8485
if ( (this._scrollTop > top - scrollTargetHalfHeight)

0 commit comments

Comments
 (0)