(url?: string)
| 201 | // Item pool operations |
| 202 | |
| 203 | public getFromPool(url?: string): GObject | null { |
| 204 | if (!url) { |
| 205 | url = this._defaultItem; |
| 206 | } |
| 207 | const obj = this._pool.getObject(url); |
| 208 | if (obj) { |
| 209 | obj.visible = true; |
| 210 | } |
| 211 | return obj; |
| 212 | } |
| 213 | |
| 214 | public returnToPool(obj: GObject): void { |
| 215 | this._pool.returnObject(obj); |
no test coverage detected