(size, previousState)
| 1 | function Grid(size, previousState) { |
| 2 | this.size = size; |
| 3 | this.cells = previousState ? this.fromState(previousState) : this.empty(); |
| 4 | } |
| 5 | |
| 6 | // Build a grid of the specified size |
| 7 | Grid.prototype.empty = function () { |
nothing calls this directly
no outgoing calls
no test coverage detected