Plugin code organization

Get help using Construct 2

Post » Wed Dec 21, 2011 1:01 am

Thanks Ashley
B
58
S
13
G
10
Posts: 632
Reputation: 12,545

Post » Wed Dec 21, 2011 1:11 am

@Ashley

FB plugin seems to add something in c2-externs.js.
[code]// Prevent mangling of FB API
window.fbAsyncInit = function () {}
window.FB = function () {}
window.FB.init = function (i) {}
window.FB.getLoginStatus = function (r) {}
window.FB.api = function (q, r) {}
window.FB.ui = function (q, r) {}
window.FB.Event = function () {}
window.FB.Event.subscribe = function (e, r) {}
window.FB.login = function (r) {}
window.FB.logout = function (r) {}[/code]
Is it suitable for 3rd part plugin maker to edit this? (Plugin user need to override c2-externs.js)rexrainbow2011-12-21 01:12:12
B
99
S
22
G
192
Posts: 4,177
Reputation: 111,217

Previous

Return to How do I....?

Who is online

Users browsing this forum: Mubot, odiusfly and 20 guests