Skip to content

Commit

Permalink
updated the example
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Cambar committed Aug 22, 2011
1 parent 0702dd4 commit cf4dc85
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/NoSQL.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ var store = Ext.create('Ext.data.Store', {
//Counts the number of items in the collection
console.log('The collection has ' + this.getCount() + ' items.');
//Retrieves an object
var obj = store.getById('b51c524e45d38b3100000000');
var obj = store.getById('4b65524e0c41b12600000000');
//Updates the object
obj.set('ga', true);
obj.save();
obj.update();
obj.destroy();
}
}
});

/**
var model = Ext.create('NoSQL.model.Document', {
'number' : Math.round(Math.random()*1000)
});
Expand All @@ -36,3 +38,4 @@ model.save({
console.log(this.getId());
}
});
**/

0 comments on commit cf4dc85

Please sign in to comment.