sub(name, factory) {
            return this.once('sub:' + name, () => {
                const subr = factory ? factory() : this.createNew();
                this.pushUndo(() => subr.restore());
                return subr;
            });
        }
// Returns child restorable for the given key (for sub-properties)
Returns child restorable for the given key (for sub-properties)
Returns child restorable for the given key ( for sub - properties )
sub(name, factory) {
            return this.once('sub:' + name, () => {
                const subr = factory ? factory() : this.createNew();
                this.pushUndo(() => subr.restore());
                return subr;
            });
        }
sub ( name , factory ) { return this . once ( 'sub:' + name , ( ) => { const subr = factory ? factory ( ) : this . createNew ( ) ; this . pushUndo ( ( ) => subr . restore ( ) ) ; return subr ; } ) ; }
Returns child restorable for the given key (for sub-properties)
Returns child restorable for the given key ( for sub - properties )