Mercurial > psgxs
comparison modules/mod_owner.js @ 49:7e421278b31b
Fix for node strict mode compatibility.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Sun, 20 Mar 2011 15:25:27 +0100 |
parents | 0d3f18bb1d36 |
children | 99bd1d1ac071 |
comparison
equal
deleted
inserted
replaced
48:c979c4d0932b | 49:7e421278b31b |
---|---|
55 right = true; | 55 right = true; |
56 | 56 |
57 if (!right) | 57 if (!right) |
58 return makeError(response, errors.forbidden.n); | 58 return makeError(response, errors.forbidden.n); |
59 | 59 |
60 conf = {}; | 60 var conf = {}; |
61 conf['pubsub#creator'] = bare; | 61 conf['pubsub#creator'] = bare; |
62 | 62 |
63 var r = storage.createNode(nodeID, conf); | 63 var r = storage.createNode(nodeID, conf); |
64 if (typeof r == 'number') | 64 if (typeof r == 'number') |
65 return makeError(response, r); | 65 return makeError(response, r); |