Projet

Général

Profil

Paste
Télécharger (1,66 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / libraries / flexslider-2.5.0 / bower_components / jquery / src / support.js @ 0aee3c58

1
define([
2
        "./core",
3
        "./var/strundefined",
4
        "./var/support",
5
        "./core/init", // Needed for hasOwn support test
6
        // This is listed as a dependency for build order, but it's still optional in builds
7
        "./core/ready"
8
], function( jQuery, strundefined, support ) {
9

    
10
// Support: IE<9
11
// Iteration over object's inherited properties before its own
12
var i;
13
for ( i in jQuery( support ) ) {
14
        break;
15
}
16
support.ownLast = i !== "0";
17

    
18
// Note: most support tests are defined in their respective modules.
19
// false until the test is run
20
support.inlineBlockNeedsLayout = false;
21

    
22
// Execute ASAP in case we need to set body.style.zoom
23
jQuery(function() {
24
        // Minified: var a,b,c,d
25
        var val, div, body, container;
26

    
27
        body = document.getElementsByTagName( "body" )[ 0 ];
28
        if ( !body || !body.style ) {
29
                // Return for frameset docs that don't have a body
30
                return;
31
        }
32

    
33
        // Setup
34
        div = document.createElement( "div" );
35
        container = document.createElement( "div" );
36
        container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
37
        body.appendChild( container ).appendChild( div );
38

    
39
        if ( typeof div.style.zoom !== strundefined ) {
40
                // Support: IE<8
41
                // Check if natively block-level elements act like inline-block
42
                // elements when setting their display to 'inline' and giving
43
                // them layout
44
                div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";
45

    
46
                support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;
47
                if ( val ) {
48
                        // Prevent IE 6 from affecting layout for positioned elements #11048
49
                        // Prevent IE from shrinking the body in IE 7 mode #12869
50
                        // Support: IE<8
51
                        body.style.zoom = 1;
52
                }
53
        }
54

    
55
        body.removeChild( container );
56
});
57

    
58
});