Permalink
Browse files

updated the example

  • Loading branch information...
1 parent 0702dd4 commit cf4dc857a08b9f3080e79f879c85b3c06b9523e4 Xavier Cambar committed Aug 22, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 examples/NoSQL.js
View
@@ -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)
});
@@ -36,3 +38,4 @@ model.save({
console.log(this.getId());
}
});
+**/

0 comments on commit cf4dc85

Please sign in to comment.