Author: lindner
Date: Tue May 18 17:54:55 2010
New Revision: 945790

URL: http://svn.apache.org/viewvc?rev=945790&view=rev
Log:
explicitly return false in pubsub sample

Modified:
    shindig/trunk/content/container/sample-pubsub.html

Modified: shindig/trunk/content/container/sample-pubsub.html
URL: 
http://svn.apache.org/viewvc/shindig/trunk/content/container/sample-pubsub.html?rev=945790&r1=945789&r2=945790&view=diff
==============================================================================
--- shindig/trunk/content/container/sample-pubsub.html (original)
+++ shindig/trunk/content/container/sample-pubsub.html Tue May 18 17:54:55 2010
@@ -50,25 +50,30 @@ my.init = function() {
     onSubscribe: function(sender, channel) {
       log(sender + " subscribes to channel '" + channel + "'");
       // return true to reject the request.
+      return false;
     },
     onUnsubscribe: function(sender, channel) {
       log(sender + " unsubscribes from channel '" + channel + "'");
       // return true to reject the request.
+      return false;
     },
     onPublish: function(sender, channel, message) {
       log(sender + " publishes '" + message + "' to channel '" + channel + 
"'");
       // return true to reject the request.
+      return false;
     }
   });
   shindig.container.layoutManager = new my.LayoutManager();
 };
 
 my.renderGadgets = function() {
+  shindig.container.setParentUrl("http://localhost:8080/";);
   for (var i = 0; i < my.gadgetSpecUrls.length; ++i) {
     var gadget = shindig.container.createGadget(
-        {specUrl: my.gadgetSpecUrls[i], title: (i ? "Subscriber" : 
"Publisher")});
+        {debug:1,specUrl: my.gadgetSpecUrls[i], title: (i ? "Subscriber" : 
"Publisher")});
     shindig.container.addGadget(gadget);
     shindig.container.renderGadget(gadget);
+   
   }
 };
 


Reply via email to