diff 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
line wrap: on
line diff
--- a/storage.js
+++ b/storage.js
@@ -210,7 +210,7 @@ storage.setItem = function(nodeID, itemI
 	if (typeof itemID != 'string')
 		itemID = fdsq.makeRandomId();
 
-	i = node.setItem(itemID, content);
+	var i = node.setItem(itemID, content);
 	if (content)
 		i.content = content;
 
@@ -226,7 +226,7 @@ storage.deleteItem = function(nodeID, it
 	if (typeof itemID != 'string')
 		return errors.pub.retract.item_or_itemid_required.n;
 
-	item = node.setItem(itemID);
+	var item = node.setItem(itemID);
 	if (typeof item == 'number')
 		return item;