(where, _new_rows)
| 133 | } |
| 134 | |
| 135 | var add = function(where, _new_rows) { |
| 136 | var new_rows = isArray(_new_rows) |
| 137 | ? _new_rows |
| 138 | : []; |
| 139 | if( ! new_rows.length) return; |
| 140 | rows = where == 'append' |
| 141 | ? rows.concat(new_rows) |
| 142 | : new_rows.concat(rows); |
| 143 | self.insertToDOM(rows, cache); |
| 144 | } |
| 145 | self.append = function(rows) { |
| 146 | add('append', rows); |
| 147 | } |