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,515

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
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Previous

Return to How do I....?

Who is online

Users browsing this forum: linkman2004, Renfd, supreme676, Yahoo [Bot] and 18 guests