Plugin code organization

Get help using Construct 2

Post » Wed Dec 21, 2011 1:01 am

Thanks Ashley
B
58
S
15
G
11
Posts: 632
Reputation: 13,335

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
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests