* Constructor
()
| 17 | * Constructor |
| 18 | */ |
| 19 | constructor () { |
| 20 | super() |
| 21 | this._viewPrototype = PipeView |
| 22 | this._brickFactory = null |
| 23 | this._service = null |
| 24 | |
| 25 | // Meta |
| 26 | this._id = null |
| 27 | this._url = null |
| 28 | this._title = null |
| 29 | this._description = null |
| 30 | |
| 31 | // Empty array of bricks and brick state objects |
| 32 | this._bricks = [] |
| 33 | this._brickState = [] |
| 34 | |
| 35 | // New pipes contain one empty bucket |
| 36 | this._bucketContent = [Chain.empty()] |
| 37 | this._bucketListeners = [[]] |
| 38 | this._selectedBucket = 0 |
| 39 | |
| 40 | // Lazily instantiated library modal view |
| 41 | this._libraryModalView = null |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Returns the id. |