cloudcms-server 4.0.0-beta.2 → 4.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,10 +43,18 @@ var bindSubscriptions = function()
43
43
  };
44
44
 
45
45
  // fire to reference
46
- process.IO.to(reference).emit("watchResource", reference, watchObject);
46
+ try {
47
+ if (reference) {
48
+ process.IO.to(reference).emit("watchResource", reference, watchObject);
49
+ }
50
+ } catch (e) { }
47
51
 
48
52
  // fire to head reference
49
- process.IO.to(headReference).emit("watchResource", headReference, watchObject);
53
+ try {
54
+ if (headReference) {
55
+ process.IO.to(headReference).emit("watchResource", headReference, watchObject);
56
+ }
57
+ } catch (e) { }
50
58
  }
51
59
 
52
60
  done();
@@ -33,12 +33,12 @@ exports = module.exports = function()
33
33
  // force key to "virtualdriver"
34
34
  configuration.virtualDriver.key = VIRTUAL_DRIVER_CACHE_KEY;
35
35
 
36
- console.log("a1: " + JSON.stringify(configuration.virtualDriver, null, 2));
36
+ //console.log("a1: " + JSON.stringify(configuration.virtualDriver, null, 2));
37
37
 
38
38
  // either connect anew or re-use an existing connection to Cloud CMS for this application
39
39
  Gitana.connect(configuration.virtualDriver, function(err) {
40
40
 
41
- console.log("a2:" + err);
41
+ //console.log("a2:" + err);
42
42
  if (err)
43
43
  {
44
44
  return callback(err);
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "cloudcms-server",
8
8
  "description": "Cloud CMS Application Server Module",
9
- "version": "4.0.0-beta.2",
9
+ "version": "4.0.0-beta.3",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git://github.com/gitana/cloudcms-server.git"