How can the plugin module communicate with the app module when they are in separate closures? Do I need to export some function that will let the plugins interact with the app?
Thanks
John Lenz
unread,
Nov 27, 2012, 8:01:20 PM11/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to closure-compiler
there are 2 easy options:
1) there is a compiler option to rewrite "global" variables and function to be properties on a object you pass to the wrapper (you have one global name or if you are fancy you hide the object in a function that loads your other scripts. The end result is that you simply need to worry about loading.
2) or you export a interface that your plugin communicates with.
pablo platt
unread,
Nov 27, 2012, 8:39:01 PM11/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to closure-comp...@googlegroups.com
The first option is what I need. I guess the code size and performance difference won't be noticeable.