Skip to content

Commit

Permalink
client.get will (now) return undefined, not "null" instead of 404
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Mar 6, 2012
1 parent d6907b7 commit 46e0ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tutorial.js
Expand Up @@ -73,7 +73,7 @@ define(['./remoteStorage', './helper'], function(remoteStorage, helper) {
alert('Could not find "' + key + '" in category "' + category + '" on the remoteStorage');
console.log(error);
} else {
if (data == "null") {
if (data == undefined) {
console.log('There wasn\'t anything for "' + key + '" in category "' + category + '"');
} else {
console.log('We received this for key "' + key + '" in category "' + category + '": ' + data);
Expand Down

0 comments on commit 46e0ad1

Please sign in to comment.