Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use jQuery#length instead of jQuery#size() #2

Closed
mathiasbynens opened this Issue · 4 comments

2 participants

@mathiasbynens

http://api.jquery.com/size/

The .size() method is functionally equivalent to the .length property; however, the .length property is preferred because it does not have the overhead of a function call.

jQuery#size will be deprecated and possibly removed in the future.

@impressivewebs

Good to know. Thanks, I'll update that when I get a chance.

@impressivewebs

Corrected. Thank you.

@mathiasbynens

Re: 11b0f85 length is a property, not a function.

@impressivewebs

Duh...... Thanks... fixed. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.