From 3f5af56ba38d873a3fb31fc72714569481194c11 Mon Sep 17 00:00:00 2001 From: chemzqm Date: Wed, 8 Jan 2014 15:41:09 +0800 Subject: [PATCH] fix examples as html() and text() method changed --- examples/delegation.html | 5 ++--- examples/manipulation.html | 2 +- examples/standalone.html | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/delegation.html b/examples/delegation.html index f468583..2b6c5be 100644 --- a/examples/delegation.html +++ b/examples/delegation.html @@ -11,9 +11,8 @@ var n = 0; setInterval(function(){ - dom('ul') - .append('
  • ') - .html('item ' + ++n + ' x'); + dom('ul') + .append('
  • item ' + ++n + ' x
  • '); }, 1500); dom('ul').on('click', 'a', function(e){ diff --git a/examples/manipulation.html b/examples/manipulation.html index db23453..d6770ac 100644 --- a/examples/manipulation.html +++ b/examples/manipulation.html @@ -13,7 +13,7 @@ dom('.add').on('click', function(){ var val = prompt('Item:'); - dom('ul').append('
  • ').text(val); + dom('ul').append('
  • ' + val + '
  • '); }); dom('.remove').on('click', function(){ diff --git a/examples/standalone.html b/examples/standalone.html index 6603ab4..404e590 100644 --- a/examples/standalone.html +++ b/examples/standalone.html @@ -10,8 +10,7 @@ var n = 0; setInterval(function(){ dom('ul') - .append('
  • ') - .html('item ' + ++n + ' x'); + .append('
  • item ' + ++n + ' x
  • '); }, 1500); dom('ul').on('click', 'a', function(e){