Skip to content

Commit

Permalink
Cleanup of doc (into docblock) in /data/accepts.js
Browse files Browse the repository at this point in the history
I think to better keep up with doc standard, we should turn the long comment doc  into a better docblock.
  • Loading branch information
NikV committed Mar 8, 2015
1 parent 34da7d5 commit 61991f5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/data/accepts.js
Expand Up @@ -6,12 +6,15 @@ define([
* Determines whether an object can have data * Determines whether an object can have data
*/ */
jQuery.acceptData = function( owner ) { jQuery.acceptData = function( owner ) {
// Accepts only: /**
// - Node * Accepts only:
// - Node.ELEMENT_NODE * - Node
// - Node.DOCUMENT_NODE * - Node.ELEMENT_NODE
// - Object * - Node.DOCUMENT_NODE
// - Any * - Object
* - Any
*/

/* jshint -W018 */ /* jshint -W018 */
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
}; };
Expand Down

0 comments on commit 61991f5

Please sign in to comment.