I noticed that the when the Facebook plugin gets minified, the FB api calls like FB.api stay the same to avoid breaking the code that calls those functions. I tried looking in the Facebook runtime.js file but I could not see any code that would instructs Closure to avoid renaming those methods. If I copy and paste the runtime.js into closure-compiler.appspot.com/home, the resulting file does rename those functions and gives warning like the following:
JSC_INEXISTENT_PROPERTY: Property api never defined on FB at line 308 character 0
FB.api('/me/feed', 'POST', publish, function(response) {
I am trying to make my copperlicht3d plugin work with minification, but Closure is renaming the CL3D.xxx functions that belong to copperlicht in my code. It renames them to something like CL3D.Ki, etc. Is there anything that I am missing?
BTW, I did read the section of exporting symbols (https://developers.google.com/closure/compiler/docs/api-tutorial3#removal) but I did not see any symbol exporting in the Facebook plugin's runtime file.