Skip to content

Commit 9839e8f

Browse files
committed
版本
1 parent 73eeea7 commit 9839e8f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+17356
-250
lines changed

1.2.6/src/ajax.js

+515
Large diffs are not rendered by default.

1.2.6/src/core.js

+1,370
Large diffs are not rendered by default.

1.2.6/src/dimensions.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Create innerHeight, innerWidth, outerHeight and outerWidth methods
2+
jQuery.each([ "Height", "Width" ], function(i, name){
3+
4+
var tl = i ? "Left" : "Top", // top or left
5+
br = i ? "Right" : "Bottom"; // bottom or right
6+
7+
// innerHeight and innerWidth
8+
jQuery.fn["inner" + name] = function(){
9+
return this[ name.toLowerCase() ]() +
10+
num(this, "padding" + tl) +
11+
num(this, "padding" + br);
12+
};
13+
14+
// outerHeight and outerWidth
15+
jQuery.fn["outer" + name] = function(margin) {
16+
return this["inner" + name]() +
17+
num(this, "border" + tl + "Width") +
18+
num(this, "border" + br + "Width") +
19+
(margin ?
20+
num(this, "margin" + tl) + num(this, "margin" + br) : 0);
21+
};
22+
23+
});

0 commit comments

Comments
 (0)