You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
383 B
21 lines
383 B
7 years ago
|
define([
|
||
|
"../core"
|
||
|
], function( jQuery ) {
|
||
|
|
||
|
/**
|
||
|
* Determines whether an object can have data
|
||
|
*/
|
||
|
jQuery.acceptData = function( owner ) {
|
||
|
// Accepts only:
|
||
|
// - Node
|
||
|
// - Node.ELEMENT_NODE
|
||
|
// - Node.DOCUMENT_NODE
|
||
|
// - Object
|
||
|
// - Any
|
||
|
/* jshint -W018 */
|
||
|
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
|
||
|
};
|
||
|
|
||
|
return jQuery.acceptData;
|
||
|
});
|