Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Formatted readme slightly

  • Loading branch information...
commit c37c40d639665535f4731398a25f4aa3752719a7 1 parent e8bca97
Zef Hemel authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 README.md
18 README.md
View
@@ -117,15 +117,15 @@ be persisted to the datase. All objects retrieved from the database
are automatically tracked for changes. New entities can be tracked to
be persisted using the `persistence.add` function:
- var c = new Category({name: "Main category"});
- persistence.add(c);
- for ( var i = 0; i < 5; i++) {
- var t = new Task();
- t.name = 'Task ' + i;
- t.done = i % 2 == 0;
- t.category = c;
- persistence.add(t);
- }
+ var c = new Category({name: "Main category"});
+ persistence.add(c);
+ for ( var i = 0; i < 5; i++) {
+ var t = new Task();
+ t.name = 'Task ' + i;
+ t.done = i % 2 == 0;
+ t.category = c;
+ persistence.add(t);
+ }
All changes made to tracked objects can be flushed to the database by
using `persistence.flush`, which takes a transaction object and
Please sign in to comment.
Something went wrong with that request. Please try again.