Artifact Content
Artifact 374a4706d9d03e0a3be557e77db08bcf8e383c3c5e83b25774d66013946b1bda:
- File public/riot-3.13.2/test/tag/observable-attr.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: 384)
<observable-attr> <observable-attr-child store={ store }></observable-attr-child> this.store = riot.observable() this.on('mount', function() { this.store.trigger('custom-event') }) </observable-attr> <observable-attr-child> var self = this this.store = opts.store this.store.on('custom-event', function(){ self.wasTriggered = true }) </observable-attr-child>