On Thu, Apr 23, 2009 at 11:05 AM, Han Nguyen <[email protected]> wrote:
> Hello, > I'm a JavaScript and Shindig newbie. I have 2 questions: > 1. I have the pubsub sample working, and would like to learn more on how > the pubsub and rpc code work. Could anyone please explain or give me some > pointers? I'd start by reading the rather thorough transport layer documentation found in the source code itself that John H wrote. For integration, you probably want to look here: http://cwiki.apache.org/SHINDIGxSITE/how-to-support-features-that-depend-on-gadgetsrpc.html > > > 2. I did an alert on the on the router of the pubsub.js "alert('pubsub: ' > +router);", it displayed > > pubsub: function A(E, C, D) { > var F = B[E]; > if (typeof F === "function") { > F(C, D); > } > > What are those letters? the original source code didn't look like that. Is > it somehow compressed? if so then can I turn compress off? if not please > explain. Adding debug=1 to either the iframe url or the script source will give you the uncompressed version. > > > Thanks! > Han

