Little Tiny Change for Stabilization. littletinychange
authorAlex Iskander <alex@tpsitulsa.com>
Thu, 17 Sep 2009 18:18:57 -0500
branchlittletinychange
changeset 2668 6ad5fa025538dad2394f826803310f8d26b9ce8c
parent 2661 5fa22c68f256939c2e4748a51ae0f1b00c534fe9
child 2669 2718c2601e9ffad5a086320a342d52071e24b3e1
push id1131
push userkdangoor@mozilla.com
push dateFri, 18 Sep 2009 15:31:56 +0000
Little Tiny Change for Stabilization.
frontend/js/bespin/bespin.js
--- a/frontend/js/bespin/bespin.js
+++ b/frontend/js/bespin/bespin.js
@@ -58,17 +58,17 @@ dojo.mixin(bespin, {
     /** Holds the timeouts so they can be cleared later */
     _lazySubscriptionTimeout: {},
 
     /**
      * Given a topic and a set of parameters, publish onto the bus.
      * maps onto dojo.publish but lets us abstract away for the future
      */
     publish: function(topic, args) {
-        if (window.globalStorage && window.globalStorage[location.hostname].debug) {
+        if (window.globalStorage && window.globalStorage[location.hostname] && window.globalStorage[location.hostname].debug) {
             console.log("Publish", topic, args);
         }
 
         bespin._eventLog[topic] = true;
         dojo.publish("bespin:" + topic, dojo.isArray(args) ? args : [ args || {} ]);
     },
 
     /**