summaryrefslogtreecommitdiffstats
path: root/js/vendor/jquery/src/dimensions.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/jquery/src/dimensions.js')
-rw-r--r--js/vendor/jquery/src/dimensions.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/js/vendor/jquery/src/dimensions.js b/js/vendor/jquery/src/dimensions.js
index e6cb04c02..30b55fbc0 100644
--- a/js/vendor/jquery/src/dimensions.js
+++ b/js/vendor/jquery/src/dimensions.js
@@ -1,4 +1,4 @@
-define([
+define( [
"./core",
"./core/access",
"./css"
@@ -6,7 +6,9 @@ define([
// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
+ jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
+ function( defaultExtra, funcName ) {
+
// Margin is only for outerHeight, outerWidth
jQuery.fn[ funcName ] = function( margin, value ) {
var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
@@ -16,6 +18,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
var doc;
if ( jQuery.isWindow( elem ) ) {
+
// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
// isn't a whole lot we can do. See pull request at this URL for discussion:
// https://github.com/jquery/jquery/pull/764
@@ -36,6 +39,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
}
return value === undefined ?
+
// Get width or height on the element, requesting but not forcing parseFloat
jQuery.css( elem, type, extra ) :
@@ -43,8 +47,8 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
jQuery.style( elem, type, value, extra );
}, type, chainable ? margin : undefined, chainable, null );
};
- });
-});
+ } );
+} );
return jQuery;
-});
+} );