Check the span is passed. Span is undefined unless moved.
Split a function 'visibleGrid' to 'getGrid', 'filterVisibleGrid' and 'visibleGrid'.
Use a new function 'getGrid'.
Merge pull request #14 from pubannotation/bugfix_error_on_resize

Bugfix error on resize