This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dojo 1.7 - named functions" Watch "Dojo 1.7 - named functions" New topic

Dojo 1.7 - named functions

Kaisa Karhutar

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?
I agree. Here's the link:
subject: Dojo 1.7 - named functions
It's not a secret anymore!