Created
February 4, 2014 18:14
-
-
Save oshikryu/8809207 to your computer and use it in GitHub Desktop.
Fill row array blanks in table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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