diff --git a/lib/timeline/component/Group.js b/lib/timeline/component/Group.js index cbbcbee6..a0542904 100644 --- a/lib/timeline/component/Group.js +++ b/lib/timeline/component/Group.js @@ -300,9 +300,9 @@ Group.prototype._redrawItems = function(forceRestack, lastIsVisible, margin, ran } } - for (i = 0; i < this.items.length; i++) { - this.items[i].repositionX(limitSize); - } + util.forEach(this.items, function (item) { + item.repositionX(limitSize); + }); if (this.doInnerStack && this.itemSet.options.stackSubgroups) { // Order the items within each subgroup