aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes what's being returned from this code? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "what Watch "what New topic
Author

what's being returned from this code?

simon tiberius
Greenhorn

Joined: Oct 30, 2012
Posts: 29


I'm confused, the code doesn't see to return integer or object or whatever, so what's the purpose of "return" in the snippet? thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56150
    
  13

I'm assuming this is in a jQuery environment?

If so, then the outer function will return the value returned by the .each() method, which, if you look at the jQuery docs, will be the same jQuery wrapped set that .each() is called upon.

In other words: the value of this on line 3.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: what's being returned from this code?
 
Similar Threads
Equals and Hashcode validation
topological sort
Inheritance of a Variable
Best practices for storing state data "outside" of the Activity
Sorting a ResultSet