diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-03-14 10:22:09 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-03-26 01:34:31 +0100 |
commit | 2fc5ca4f601174a7ecb7c77a7059f5fac2ab4611 (patch) | |
tree | aa7ab66e29fc7de98533d1e55832ca4fbcd39611 /js/vendor/jquery/src/data/accepts.js | |
parent | 22fc777ce7403d706649cf83bb23010dfd7dea04 (diff) |
update a lot of stuff, WIP
Diffstat (limited to 'js/vendor/jquery/src/data/accepts.js')
-rw-r--r-- | js/vendor/jquery/src/data/accepts.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/vendor/jquery/src/data/accepts.js b/js/vendor/jquery/src/data/accepts.js new file mode 100644 index 000000000..291c7b475 --- /dev/null +++ b/js/vendor/jquery/src/data/accepts.js @@ -0,0 +1,20 @@ +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; +}); |