Projet

Général

Profil

Paste
Télécharger (567 octets) Statistiques
| Branche: | Révision:

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

1
define([
2
        "../core"
3
], function( jQuery ) {
4

    
5
/**
6
 * Determines whether an object can have data
7
 */
8
jQuery.acceptData = function( elem ) {
9
        var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ],
10
                nodeType = +elem.nodeType || 1;
11

    
12
        // Do not set data on non-element DOM nodes because it will not be cleared (#8335).
13
        return nodeType !== 1 && nodeType !== 9 ?
14
                false :
15

    
16
                // Nodes accept data unless otherwise specified; rejection can be conditional
17
                !noData || noData !== true && elem.getAttribute("classid") === noData;
18
};
19

    
20
return jQuery.acceptData;
21
});