This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Dojo 1.7 - named functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dojo 1.7 - named functions" Watch "Dojo 1.7 - named functions" New topic
Author

Dojo 1.7 - named functions

Kaisa Karhutar
Greenhorn

Joined: Apr 07, 2012
Posts: 1
There is an example in Dojo tutorial written in 1.6 style


named function toggle() is called from markup. What is the recommended way to do the same thing in 1.7 where dojo code is enclosed in anonymous function passed as an argument to require(..) method:

Is it possible to have named function that uses some dojo code?
 
 
subject: Dojo 1.7 - named functions
 
jQuery in Action, 3rd edition