Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
craigc
on March 26, 2012
|
parent
|
context
|
favorite
| on:
Rainbow.js - code syntax highlighting in 1.2kb
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.
oinksoft
on March 26, 2012
[–]
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:
In order to preserve the methods and keep them public you have to reference them like this.