Skip to content

Instantly share code, notes, and snippets.

@oshikryu
Created February 4, 2014 18:14
Show Gist options
  • Save oshikryu/8809207 to your computer and use it in GitHub Desktop.
Save oshikryu/8809207 to your computer and use it in GitHub Desktop.
Fill row array blanks in table
_fillRowArrayBlanks: ->
curLen = @displayedArray.length
diff = @watchSamples - curLen
filler = []
for i in [0...diff]
filler[i] = [
point: '-'
pinned: true
]
for row in @model.get 'feedList'
filler[i].push
point: '-'
pinned: false
@rowArray = @rowArray.concat filler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment