Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is because I'm using Google Closure Compiler in advanced mode so all methods that do not get used get renamed.

In order to preserve the methods and keep them public you have to reference them like this.



This is what @export (and the related functions in the library for if you are not using annotations) are for. In the context of Closure, this is clumsy. But I expect that not all other minifiers offer the same flexibility.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: