Is there a better way of doing this?? I just want to pass (in this case) "10" to "myFunction".
Acts.prototype.Connect = function () {
var self = this;
// ... connection stuff
this.connection.on('error', function() {
self.someVar = 10;
self.runtime.trigger(pluginProto.cnds.myFunction, self);
});
});