diff options
author | Wilson Page <wilsonpage@me.com> | 2013-02-11 09:59:49 +0000 |
---|---|---|
committer | Wilson Page <wilsonpage@me.com> | 2013-02-11 09:59:49 +0000 |
commit | 2149655a72d2da6a6a64faa10d3818418c2284a5 (patch) | |
tree | e6ecf774f272a1f9bcaab7b99cffe350e1eaa0cb /examples/index.html | |
parent | 9d214255449b7b61b5c6bf16219fa6bfd0926043 (diff) | |
download | fastdom-origin/0.2.zip fastdom-origin/0.2.tar.gz fastdom-origin/0.2.tar.bz2 |
COnvert tabs to spacesorigin/0.2
Diffstat (limited to 'examples/index.html')
-rw-r--r-- | examples/index.html | 66 |
1 files changed, 32 insertions, 34 deletions
diff --git a/examples/index.html b/examples/index.html index 9424377..1b5c237 100644 --- a/examples/index.html +++ b/examples/index.html @@ -10,50 +10,48 @@ </style> </head> <body> - <div class='div1'></div> - <div class='div2'></div> - <div class='div3'></div> - <script type="text/javascript" src="../lib/dombatcher.js"></script> - <script> + <div class='div1'></div> + <div class='div2'></div> + <div class='div3'></div> + <script type="text/javascript" src="../lib/dombatcher.js"></script> + <script> + domBatch.write(function() { + console.log('write1'); + }); + domBatch.read(function() { + console.log('read1'); + }); - domBatch.write(function() { - console.log('write1'); - }); + domBatch.read(function() { + console.log('read1'); + }); - domBatch.read(function() { - console.log('read1'); - }); + domBatch.write(function() { + console.log('write1'); + }); - domBatch.read(function() { - console.log('read1'); - }); - domBatch.write(function() { - console.log('write1'); - }); + setTimeout(function() { + domBatch.write(function() { + console.log('write2'); + }); - setTimeout(function() { + domBatch.read(function() { + console.log('read2'); + }); - domBatch.write(function() { - console.log('write2'); - }); + domBatch.read(function() { + console.log('read2'); + }); - domBatch.read(function() { - console.log('read2'); - }); - - domBatch.read(function() { - console.log('read2'); - }); - - domBatch.write(function() { - console.log('write2'); - }); - }, 400); - </script> + domBatch.write(function() { + console.log('write2'); + }); + }, 400); + </script> </body> </html>
\ No newline at end of file |