{"size": 850, "ext": "js", "max_stars_repo_path": "libs/jquery/1.2.4b/fork/src/dimensions.js", "max_stars_repo_name": "renfei/FLibs", "max_stars_repo_stars_event_min_datetime": "2021-04-20T14:21:42.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-20T14:21:42.000Z", "max_issues_repo_path": "libs/jquery/1.2.4b/fork/src/dimensions.js", "max_issues_repo_name": "renfei/FLibs", "max_issues_repo_issues_event_min_datetime": "2021-03-31T01:38:50.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-31T01:39:52.000Z", "max_forks_repo_path": "libs/jquery/1.2.4b/fork/src/dimensions.js", "max_forks_repo_name": "renfei/FLibs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 19, "max_forks_count": null, "avg_line_length": 29.3103448276, "max_line_length": 69, "alphanum_fraction": 0.5917647059}
// Create innerHeight, innerWidth, outerHeight and outerWidth methods
jQuery.each([ "Height", "Width" ], function(i, name){

	var tl = name == "Height" ? "Top"    : "Left",  // top or left
		br = name == "Height" ? "Bottom" : "Right"; // bottom or right

	// innerHeight and innerWidth
	jQuery.fn["inner" + name] = function(){
		return this[ name.toLowerCase() ]() +
			num(this, "padding" + tl) +
			num(this, "padding" + br);
	};

	// outerHeight and outerWidth
	jQuery.fn["outer" + name] = function(margin) {
		return this["inner" + name]() +
			num(this, "border" + tl + "Width") +
			num(this, "border" + br + "Width") +
			(!!margin ?
				num(this, "margin" + tl) + num(this, "margin" + br) : 0);
	};

});

function num(elem, prop) {
	elem = elem.jquery ? elem[0] : elem;
	return elem && parseInt( jQuery.curCSS(elem, prop, true), 10 ) || 0;
}
