Skip to content

Commit

Permalink
Fixes #564 - Fixes the Table:each example, so added an actual code ex…
Browse files Browse the repository at this point in the history
…ample of .each
  • Loading branch information
Arian committed May 6, 2011
1 parent cbb4613 commit 967c8f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Docs/Utilities/Table.md
Expand Up @@ -102,7 +102,13 @@ Iterates over the key/values in the table.
### Examples

var myTable = new Table();
// first set some values
myTable.set($('myForm'), {foo: 'bar'});
myTable.set(myClassInstance, $$('.someElements'));
// and now iterate over them
myTable.each(function(value, key){
console.log(value, key);
});


[Function:bind]: /core/Types/Function/#Function:bind

0 comments on commit 967c8f4

Please sign in to comment.