⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact 9be39950d19db709810a03dbba4b975db9bf3ea0b30a5610198b84026805d725:


<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>