File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ export class Controller<State extends Lookup = Lookup>
172172
173173 /** Freeze the active animation in time */
174174 pause ( keys ?: OneOrMore < string > ) {
175+ throwDisposed ( this . is ( DISPOSED ) )
175176 if ( is . und ( keys ) ) {
176177 if ( ! this . is ( PAUSED ) ) {
177178 this . _phase = PAUSED
@@ -187,6 +188,7 @@ export class Controller<State extends Lookup = Lookup>
187188
188189 /** Resume the animation if paused. */
189190 resume ( keys ?: OneOrMore < string > ) {
191+ throwDisposed ( this . is ( DISPOSED ) )
190192 if ( is . und ( keys ) ) {
191193 if ( this . is ( PAUSED ) ) {
192194 this . _phase = this . _active . size ? ACTIVE : IDLE
@@ -218,6 +220,7 @@ export class Controller<State extends Lookup = Lookup>
218220 this . _phase = DISPOSED
219221 stopAsync ( this . _state )
220222 this . each ( spring => spring . dispose ( ) )
223+ overrideGet ( this , 'queue' , throwDisposed )
221224 overrideGet ( this , 'springs' , throwDisposed )
222225 }
223226 }
You can’t perform that action at this time.
0 commit comments