Update of multiple frontend libs.
This commit is contained in:
parent
de261dbde5
commit
a9c6ddc03b
276 changed files with 41257 additions and 19300 deletions
26
app/bower_components/jquery/src/dimensions.js
vendored
26
app/bower_components/jquery/src/dimensions.js
vendored
|
@ -1,12 +1,16 @@
|
|||
define([
|
||||
define( [
|
||||
"./core",
|
||||
"./core/access",
|
||||
"./css"
|
||||
], function( jQuery, access ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// 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,10 +20,11 @@ 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
|
||||
return elem.document.documentElement[ "client" + name ];
|
||||
|
||||
// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
|
||||
return funcName.indexOf( "outer" ) === 0 ?
|
||||
elem[ "inner" + name ] :
|
||||
elem.document.documentElement[ "client" + name ];
|
||||
}
|
||||
|
||||
// Get document width or height
|
||||
|
@ -36,15 +41,16 @@ 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 ) :
|
||||
|
||||
// Set width or height on the element
|
||||
jQuery.style( elem, type, value, extra );
|
||||
}, type, chainable ? margin : undefined, chainable, null );
|
||||
}, type, chainable ? margin : undefined, chainable );
|
||||
};
|
||||
});
|
||||
});
|
||||
} );
|
||||
} );
|
||||
|
||||
return jQuery;
|
||||
});
|
||||
} );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue