Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / November 2007



Tip: Looking for answers? Try searching our database.

yield keyword/command in JavaScript 1.7

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
VK - 29 Nov 2007 21:59 GMT
Anyone has a functional sample of using "yield" command in JavaScript
1.7 ? Ideally some sample of context preservation on setTimeout - if I
am not completely off the loop with the functionality of this new
command. The googled sources like
http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7
http://www.zorched.net/2006/08/04/javascript-17-in-firefox-20/
http://aptana.com/reference/api/JSKeywords.yield%20statement.html
left my mind as innocent as it was before on the subject , sorry.
Maybe I just didn't read them right.
Thomas 'PointedEars' Lahn - 29 Nov 2007 22:06 GMT
> Anyone has a functional sample of using "yield" command in JavaScript
> 1.7 ?

There is one at MDC ... oh well, it's you.

> Ideally some sample of context preservation on setTimeout - if I
> am not completely off the loop with the functionality of this new
> command.

"Context preservation" has nothing to do with it.  The `yield' statement is
used in a generator.

> [...]
> Maybe I just didn't read them right.

And that is only a very wild guess.  Actually, the examples at MDC are very
good.

PointedEars
Signature

"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
 -- from <http://www.vortex-webdesign.com/help/hidesource.htm>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.