Permalink
Browse files

fixing example

  • Loading branch information...
1 parent 23c94e0 commit 8fbccba135f29b3014f25da54b4b739a7f404460 @joestelmach committed Jul 19, 2011
Showing with 11 additions and 11 deletions.
  1. +11 −11 example/index.html
View
@@ -34,13 +34,13 @@
document.body.appendChild(table);
// now let's take a look at how to build the same table laconically;
- el.table(
- el.tr(
- el.th('first name'),
- el.th('last name')),
- el.tr(
- el.td('Joe'),
- el.td('Stelmach'))
+ $.el.table(
+ $.el.tr(
+ $.el.th('first name'),
+ $.el.th('last name')),
+ $.el.tr(
+ $.el.td('Joe'),
+ $.el.td('Stelmach'))
).appendTo(document.body);
// A function exists in the $el namespace for all HTML tags listed here:
@@ -55,13 +55,13 @@
// <div>bar</div>
// <div>baz</div>
// </div>
- el.registerTag('foo', function() {
- this.appendChild(el.div('bar'));
- this.appendChild(el.div('baz'));
+ $.el.registerTag('foo', function() {
+ this.appendChild($.el.div('bar'));
+ this.appendChild($.el.div('baz'));
});
// Once you've registered a tag, you can start inserting them:
- el.foo().appendTo(document.body);
+ $.el.foo().appendTo(document.body);
</script>
</body>

0 comments on commit 8fbccba

Please sign in to comment.