highslide-software/highcharts.com — pull request #1708 by nebain (2013-04-11 03:08:48+00:00)
Title: Fixed Highstock issue with calling setData on an empty series (#1698)

This is my first ever pull request to any project. This is intended to fix issue #1698. The problem is that the render function may be called recursively. Once the recursion unrolls back to the first call, some of the variables that were initialized are no longer correct if the recursive call resulted in the scroller being rendered for the first time. My approach simply re-assigns those variables to their current state if the scroller had not been rendered, but is now.