* @deprecated Use View._addVisualState() and View._removeVisualState() instead.
(state: string)
| 1378 | * @deprecated Use View._addVisualState() and View._removeVisualState() instead. |
| 1379 | */ |
| 1380 | public _goToVisualState(state: string) { |
| 1381 | console.log('_goToVisualState() is deprecated. Use View._addVisualState() and View._removeVisualState() instead.'); |
| 1382 | |
| 1383 | if (Trace.isEnabled()) { |
| 1384 | Trace.write(this + ' going to state: ' + state, Trace.categories.Style); |
| 1385 | } |
| 1386 | |
| 1387 | if (state === this._visualState) { |
| 1388 | return; |
| 1389 | } |
| 1390 | |
| 1391 | this.deletePseudoClass(this._visualState); |
| 1392 | this._visualState = state; |
| 1393 | this.addPseudoClass(state); |
| 1394 | } |
| 1395 | |
| 1396 | /** |
| 1397 | * @deprecated |
nothing calls this directly
no test coverage detected