reworked slice page, added ResourcesSelected plugin
[myslice.git] / manifold / js / manifold.js
index 927924f..bae00c7 100644 (file)
@@ -149,7 +149,10 @@ var manifold = {
     publish_result: function(query, result) {
         /* Publish an update announce */
         var channel="/results/" + query.query_uuid + "/changed";
-        if (manifold.asynchroneous_debug) messages.debug("publishing result on " + channel);
+        if (manifold.asynchroneous_debug)
+            messages.debug("publishing result on " + channel);
+        if (typeof result === 'undefined')
+            result = [];
         jQuery.publish(channel, [result, query]);
     },