Where is the width () function in jQuery source?

Where is the width() function in jQuery source ?

+6
javascript jquery
source share
3 answers

Find jQuery.each([ "Height", "Width" ], function( i, name ) { in the code (near the end of the file).

A function is defined by the following expression when name = "Width" in an external function.

 jQuery.fn[ type ] = function( size ) { 
+7
source share

A convenient way to view the jQuery source is to use the James Padolsey interactive view source ( unfortunately, with this post Update: working again.)

+5
source share

In fact, the last function in the chain that is called to calculate the width: getWidthOrHeight

At least in the latest jquery code:

http://code.jquery.com/jquery-latest.js

0
source share

All Articles