2013-08-15 18:15:49 +00:00
|
|
|
define([
|
|
|
|
"./core",
|
2013-09-02 17:21:09 +00:00
|
|
|
"./var/support",
|
2013-09-10 00:13:01 +00:00
|
|
|
"./core/init", // Needed for hasOwn support test
|
2013-08-16 00:38:48 +00:00
|
|
|
// This is listed as a dependency for build order, but it's still optional in builds
|
|
|
|
"./core/ready"
|
2014-07-27 20:20:19 +00:00
|
|
|
], function( jQuery, support ) {
|
2013-08-15 18:15:49 +00:00
|
|
|
|
2013-09-10 00:13:01 +00:00
|
|
|
// Support: IE<9
|
|
|
|
// Iteration over object's inherited properties before its own
|
|
|
|
var i;
|
|
|
|
for ( i in jQuery( support ) ) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
support.ownLast = i !== "0";
|
|
|
|
|
2013-09-02 17:21:09 +00:00
|
|
|
// Note: most support tests are defined in their respective modules.
|
2013-09-11 20:03:40 +00:00
|
|
|
// false until the test is run
|
|
|
|
support.inlineBlockNeedsLayout = false;
|
2011-04-07 04:51:37 +00:00
|
|
|
|
2014-02-14 17:21:03 +00:00
|
|
|
// Execute ASAP in case we need to set body.style.zoom
|
2013-09-02 17:21:09 +00:00
|
|
|
jQuery(function() {
|
2014-02-14 17:21:03 +00:00
|
|
|
// Minified: var a,b,c,d
|
|
|
|
var val, div, body, container;
|
2011-04-07 04:51:37 +00:00
|
|
|
|
2014-02-14 17:21:03 +00:00
|
|
|
body = document.getElementsByTagName( "body" )[ 0 ];
|
|
|
|
if ( !body || !body.style ) {
|
2013-09-02 17:21:09 +00:00
|
|
|
// Return for frameset docs that don't have a body
|
|
|
|
return;
|
2008-12-21 23:06:42 +00:00
|
|
|
}
|
|
|
|
|
2013-09-02 17:21:09 +00:00
|
|
|
// Setup
|
2013-09-11 22:23:17 +00:00
|
|
|
div = document.createElement( "div" );
|
2014-02-14 17:21:03 +00:00
|
|
|
container = document.createElement( "div" );
|
|
|
|
container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
|
2013-09-02 17:21:09 +00:00
|
|
|
body.appendChild( container ).appendChild( div );
|
2012-05-18 16:40:10 +00:00
|
|
|
|
2014-07-27 20:20:19 +00:00
|
|
|
if ( typeof div.style.zoom !== "undefined" ) {
|
2013-09-02 17:21:09 +00:00
|
|
|
// Support: IE<8
|
|
|
|
// Check if natively block-level elements act like inline-block
|
|
|
|
// elements when setting their display to 'inline' and giving
|
|
|
|
// them layout
|
2014-02-14 17:21:03 +00:00
|
|
|
div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";
|
2012-02-13 14:52:43 +00:00
|
|
|
|
2014-02-14 17:21:03 +00:00
|
|
|
support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;
|
|
|
|
if ( val ) {
|
2013-09-02 17:21:09 +00:00
|
|
|
// Prevent IE 6 from affecting layout for positioned elements #11048
|
|
|
|
// Prevent IE from shrinking the body in IE 7 mode #12869
|
2012-12-17 14:17:39 +00:00
|
|
|
// Support: IE<8
|
2013-09-02 17:21:09 +00:00
|
|
|
body.style.zoom = 1;
|
2011-12-26 20:22:29 +00:00
|
|
|
}
|
2013-09-02 17:21:09 +00:00
|
|
|
}
|
2011-12-26 20:22:29 +00:00
|
|
|
|
2013-09-02 17:21:09 +00:00
|
|
|
body.removeChild( container );
|
|
|
|
});
|
2012-12-17 14:17:39 +00:00
|
|
|
|
2013-08-15 18:15:49 +00:00
|
|
|
});
|