Page 1 of 1

How do i use self.runtime.trigger()

PostPosted: Fri Aug 12, 2016 2:02 pm
by andykenobi
Hello there!

I'm making a plugin and i want to make a trigger... but i don't know how to use self.runtime.trigger()...

I'm using:
self.runtime.trigger(cr.plugins_.PushJs.prototype.cnds.OnShow, self);

and it return: "can not read property 'trigger' of undefined"...

How do use?

Re: How do i use self.runtime.trigger()

PostPosted: Sat Aug 13, 2016 1:06 am
by rexrainbow
add
var self=this;

Re: How do i use self.runtime.trigger()

PostPosted: Mon Aug 15, 2016 8:06 pm
by andykenobi
rexrainbow wrote:add
var self=this;


Thank you! :D