How do i use self.runtime.trigger()

For developers using the Construct 2 Javascript SDK

Post » Fri Aug 12, 2016 2:02 pm

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?
B
14
S
6
G
2
Posts: 81
Reputation: 2,241

Post » Sat Aug 13, 2016 1:06 am

add
var self=this;
B
109
S
27
G
277
Posts: 4,481
Reputation: 154,922

Post » Mon Aug 15, 2016 8:06 pm

rexrainbow wrote:add
var self=this;


Thank you! :D
B
14
S
6
G
2
Posts: 81
Reputation: 2,241


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest