@@ -122,7 +122,6 @@ export default class Backburner {
122
122
@return instantiated class DeferredActionQueues
123
123
*/
124
124
public begin ( ) : DeferredActionQueues {
125
- let options = this . options ;
126
125
let previousInstance = this . currentInstance ;
127
126
let current ;
128
127
@@ -133,7 +132,7 @@ export default class Backburner {
133
132
if ( previousInstance !== null ) {
134
133
this . instanceStack . push ( previousInstance ) ;
135
134
}
136
- current = this . currentInstance = new DeferredActionQueues ( this . queueNames , options ) ;
135
+ current = this . currentInstance = new DeferredActionQueues ( this . queueNames , this . options ) ;
137
136
this . _trigger ( 'begin' , current , previousInstance ) ;
138
137
}
139
138
@@ -236,14 +235,6 @@ export default class Backburner {
236
235
return this . _join ( target , method , args ) ;
237
236
}
238
237
239
- /**
240
- * @deprecated please use schedule instead.
241
- */
242
- public defer ( queueName : string , ...args ) ;
243
- public defer ( ) {
244
- return this . schedule ( ...arguments ) ;
245
- }
246
-
247
238
/**
248
239
* Schedule the passed function to run inside the specified queue.
249
240
*/
@@ -270,14 +261,6 @@ export default class Backburner {
270
261
return this . _ensureInstance ( ) . schedule ( queueName , null , iteratorDrain , [ iterable ] , false , stack ) ;
271
262
}
272
263
273
- /**
274
- * @deprecated please use scheduleOnce instead.
275
- */
276
- public deferOnce ( queueName : string , ...args ) ;
277
- public deferOnce ( ) {
278
- return this . scheduleOnce ( ...arguments ) ;
279
- }
280
-
281
264
/**
282
265
* Schedule the passed function to run once inside the specified queue.
283
266
*/
@@ -291,14 +274,6 @@ export default class Backburner {
291
274
return this . _ensureInstance ( ) . schedule ( queueName , target , method , args , true , stack ) ;
292
275
}
293
276
294
- /**
295
- * @deprecated use later instead.
296
- */
297
- public setTimeout ( ...args ) ;
298
- public setTimeout ( ) {
299
- return this . later ( ...arguments ) ;
300
- }
301
-
302
277
public later ( )
303
278
public later ( ...args ) {
304
279
let length = args . length ;
@@ -489,7 +464,7 @@ export default class Backburner {
489
464
return this . _cancelItem ( timer , this . _throttlers ) || this . _cancelItem ( timer , this . _debouncees ) ;
490
465
} else if ( timerType === 'function' ) { // we're cancelling a setTimeout
491
466
return this . _cancelLaterTimer ( timer ) ;
492
- } else if ( timerType === 'object' && timer . queue && timer . method ) { // we're cancelling a deferOnce
467
+ } else if ( timerType === 'object' && timer . queue && timer . method ) { // we're cancelling a scheduleOnce
493
468
return timer . queue . cancel ( timer ) ;
494
469
}
495
470
0 commit comments