It looks like you're new here. If you want to get involved, click one of these buttons!
$.event.trigger('showpassage:after', { passage: passage });
In the Javascript window of the Twine 2 editor, I've tried this (as well as binding to "body" and "html").
$("div").bind('showpassage:after', function(e, passage){
var $element = e.target;
alert("after show passage");
});
Nothing fires. Any ideas?
Comments
document
object and theon()
method (bind()
should work, buton()
is preferred). Like so: