formattedSource: []
@component = new Backbone.Model()
@issues = new Issues()
+ @issueViews = []
@listenTo options.app.state, 'change:selectedIndex', @select
@loadSourceBeforeThrottled = _.throttle @loadSourceBefore, 1000
@loadSourceAfterThrottled = _.throttle @loadSourceAfter, 1000
onClose: ->
+ @issueViews.forEach (view) -> view.close()
+ @issuesView = []
@unbindScrollEvents()
@unbindShortcuts()
line = issue.get('line') || 0
row = @$("[data-line-number=#{line}]")
issueView = new IssueView app: @options.app, model: issue
+ @issueViews.push issueView
if line == 0
issueView.render().$el.insertBefore @$('.issues-workspace-component-viewer-code')
else