should not rely on all deconstructing features because not all parsers support it
This commit is contained in:
parent
dd2b8bc6c7
commit
36203af88e
@ -102,7 +102,10 @@ export class UndoManager extends Observable {
|
|||||||
* @param {Set<any>} [trackedTransactionOrigins=new Set([null])]
|
* @param {Set<any>} [trackedTransactionOrigins=new Set([null])]
|
||||||
* @param {object} [options={captureTimeout=500}]
|
* @param {object} [options={captureTimeout=500}]
|
||||||
*/
|
*/
|
||||||
constructor (typeScope, trackedTransactionOrigins = new Set([null]), { captureTimeout = 500 } = {}) {
|
constructor (typeScope, trackedTransactionOrigins = new Set([null]), { captureTimeout } = {}) {
|
||||||
|
if (captureTimeout == null) {
|
||||||
|
captureTimeout = 500
|
||||||
|
}
|
||||||
super()
|
super()
|
||||||
this.scope = typeScope instanceof Array ? typeScope : [typeScope]
|
this.scope = typeScope instanceof Array ? typeScope : [typeScope]
|
||||||
trackedTransactionOrigins.add(this)
|
trackedTransactionOrigins.add(this)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user