* Add a row to the end of the GUI or before another row. * * @param gui * @param [dom] If specified, inserts the dom content in the new row * @param [liBefore] If specified, places the new row before another row
(gui, dom, liBefore)
| 2347 | * @param [liBefore] If specified, places the new row before another row |
| 2348 | */ |
| 2349 | function addRow(gui, dom, liBefore) { |
| 2350 | var li = document.createElement('li'); |
| 2351 | if (dom) li.appendChild(dom); |
| 2352 | if (liBefore) { |
| 2353 | gui.__ul.insertBefore(li, params.before); |
| 2354 | } else { |
| 2355 | gui.__ul.appendChild(li); |
| 2356 | } |
| 2357 | gui.onResize(); |
| 2358 | return li; |
| 2359 | } |
| 2360 | |
| 2361 | function augmentController(gui, li, controller) { |
| 2362 |
no outgoing calls
no test coverage detected