diff --git a/doc/finding.md b/doc/finding.md index 2fecac55..5f86a9c6 100644 --- a/doc/finding.md +++ b/doc/finding.md @@ -36,5 +36,6 @@ Searching keys is annoying and tedious. GAWD! Oh wait... Of course you can return everything in a `Lawnchair` with `all`. Or checkout -the [query plugin](/plugins). +the [query plugin](/plugins) for more advanced querying capabilities +should your app require them clientside. diff --git a/doc/iteration.md b/doc/iteration.md index 2cd9ca55..2789950a 100644 --- a/doc/iteration.md +++ b/doc/iteration.md @@ -4,8 +4,17 @@ iteration Iterate the `Lawnchair` collection? Don't mind if I do! + :::JavaScript Lawnchair(function(){ - this.each('console.log(record)') + this.batch([{type:'beer'}, {type:'coffee'}], function() { + // classic utility... + this.each(function(record, index) { + // ...and a plausable scenario + console.log(record +' at '+ i +' o\'clock ') + // beer at 1 o'clock + // coffee at 2 o'clock + }) + }) }) diff --git a/doc/sugar.md b/doc/sugar.md index 822810c6..7ccaabe0 100644 --- a/doc/sugar.md +++ b/doc/sugar.md @@ -62,7 +62,7 @@ the `new` keyworld/operator gets some flack. maybe it deservies it but in any ca :::JavaScript - var people = new Lawnchair(); + var people = new Lawnchair() or not... you decide. neither is right or wrong and there is no sense in being a @@ -78,7 +78,7 @@ probably not surprisingly the `Lawnchair` constructor optionally accepts a callb :::JavaScript // fuck, async makes me HOT - var people = Lawnchair(function() { /* awesome persistence here */}); + var people = Lawnchair(function() { /* awesome persistence here */}) it also optionally accepts a config obj for terse callback param injection.