Mercurial > psgxs
comparison storage.js @ 48:c979c4d0932b
Little fixes for strict mode compatibility.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Sat, 19 Mar 2011 14:57:13 +0100 |
parents | 0d3f18bb1d36 |
children | e6c2c66c2002 |
comparison
equal
deleted
inserted
replaced
47:0d3f18bb1d36 | 48:c979c4d0932b |
---|---|
208 return node; | 208 return node; |
209 | 209 |
210 if (typeof itemID != 'string') | 210 if (typeof itemID != 'string') |
211 itemID = fdsq.makeRandomId(); | 211 itemID = fdsq.makeRandomId(); |
212 | 212 |
213 i = node.setItem(itemID, content); | 213 var i = node.setItem(itemID, content); |
214 if (content) | 214 if (content) |
215 i.content = content; | 215 i.content = content; |
216 | 216 |
217 storage.save(); | 217 storage.save(); |
218 return storage.getSubscriptionsFromNodeID(nodeID) | 218 return storage.getSubscriptionsFromNodeID(nodeID) |
224 return node; | 224 return node; |
225 | 225 |
226 if (typeof itemID != 'string') | 226 if (typeof itemID != 'string') |
227 return errors.pub.retract.item_or_itemid_required.n; | 227 return errors.pub.retract.item_or_itemid_required.n; |
228 | 228 |
229 item = node.setItem(itemID); | 229 var item = node.setItem(itemID); |
230 if (typeof item == 'number') | 230 if (typeof item == 'number') |
231 return item; | 231 return item; |
232 | 232 |
233 storage.save(); | 233 storage.save(); |
234 return storage.getSubscriptionsFromNodeID(nodeID) | 234 return storage.getSubscriptionsFromNodeID(nodeID) |