diff options
author | Jason Bedard <jason+github@jbedard.ca> | 2015-08-24 19:56:57 -0700 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2015-09-08 01:00:31 +0200 |
commit | 224271982eb9cd351d7db1b38c740b4e927e6f97 (patch) | |
tree | 51d05b1ae640aca783e70bc6f415901388ff9c6a /src/data/accepts.js | |
parent | 02e10082b25df3b47b6b98e3b35399712795b7df (diff) | |
download | jquery-224271982eb9cd351d7db1b38c740b4e927e6f97.tar.gz jquery-224271982eb9cd351d7db1b38c740b4e927e6f97.zip |
Data: Don't expose jQuery.acceptData
jQuery.acceptData is an undocumented internal API that shouldn't be exposed.
Fixes gh-2555
Diffstat (limited to 'src/data/accepts.js')
-rw-r--r-- | src/data/accepts.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/data/accepts.js b/src/data/accepts.js deleted file mode 100644 index 24e2f0ef0..000000000 --- a/src/data/accepts.js +++ /dev/null @@ -1,21 +0,0 @@ -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; -} ); |