Artifact Content
Artifact 9be39950d19db709810a03dbba4b975db9bf3ea0b30a5610198b84026805d725:
- File public/riot-3.13.2/test/tag/if-unmount.tag — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 349)
<if-unmount> <if-uchild if={cond} cb={cb} /> <div if={cond}> <if-uchild cb={cb} /> </if-uchild> <div each={items}> <if-uchild if={bool} cb={cb} /> </div> this.cond = true this.items = [{bool: true}] this.cb = opts.cb </if-unmount> <if-uchild> <span>Foo</span> this.on('unmount', function() { opts.cb() }) </if-uchild>