Check the value of "self". It's saying that it can't get "trigger" from undefined.
So my guess is "self" isn't the right value.
self.runtime is probably undefined so you can't get further values.
You can even use the browser debugger to stop at that line so you can inspect the values.
I think I figured out how to deal with it.
Since the function I'm calling in the API has it's own THIS and SELF tags I had to specify the it outside the trigger call
Acts.prototype.listenTo = function (topic_)
{
var c2self = this;
APIThing.Messages.listenTo({topic: topic_}).then(function(message,msgInfo) {
c2self.msgContent = JSON.stringify(msgInfo);
c2self.runtime.trigger(cr.plugins_.PluginName.prototype.cnds.OnProvMessage, c2self);
});
};[/code:1a86eokk]
With this code it's returning the JSON info I need .