Simple API question

20 views
Skip to first unread message

Micky Hulse

unread,
Sep 13, 2012, 2:12:29 PM9/13/12
to writecaptu...@googlegroups.com
Quick question about the simple API:

writeCapture.write(document.getElementById('foo'),'<script>...');
writeCapture.write(document.getElementById('bar'),'<script
src="anotherScript.js">...');
writeCapture.write(document.getElementById('foo'),'<p>etc.</p>');
writeCapture.write(function() {
alert('all document.writes are done!');
});

Is that last line required?

Thanks!
M

noah

unread,
Sep 13, 2012, 2:38:11 PM9/13/12
to writecaptu...@googlegroups.com
Nope, that's just in case you want to know when the previous writes finished.

Micky Hulse

unread,
Sep 13, 2012, 2:39:42 PM9/13/12
to writecaptu...@googlegroups.com
On Thu, Sep 13, 2012 at 11:38 AM, noah <iam...@gmail.com> wrote:
> Nope, that's just in case you want to know when the previous writes finished.

Awesome! Thanks. :)

P.S.: I love the new simple API. Excellent work Noah.

Cheers,
Micky
Reply all
Reply to author
Forward
0 new messages