I am basically trying to get a value of script into another one. Currently, events without values look like this for me.
Script 1
Swapper.prototype.initialize = function() {
this.app.on("get:select", this.onGetSelect, this);
};
Swapper.prototype.onGetSelect = function(dt) {
alert("event found");
};
Script 2
this.app.fire("get:select");
However, if I want to alert a value from script 2 in script 1, how would I do it?