i think title pretty self-explanatory, i've been playing ractivejs while , still didn't manage figure out how partials inherit parent events.
there's no reason jsfiddle because it's no particular problem.
sometemplate:
<div id="container">{{ > somepartial }}</div>
somepartialcontent:
<div id="testmessage" on-click="showmessage:hello">click me</div>
then running this:
var content = new ractive({ el : 'body', template : sometemplate, partials : { somepartial : somepartialcontent } }); content.on({ showmessage: function( e , _message ) { alert( _message ) } });
the expected behaviour when click #testmessage
alert box pop , doesnt.
Comments
Post a Comment