Skip to content
Permalink
Browse files

Cleanup of doc (into docblock) in /data/accepts.js

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 61991f5a0fa71af543be035584e0be51e4ba44f3
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/data/accepts.js
@@ -6,12 +6,15 @@ define([
* Determines whether an object can have data
*/
jQuery.acceptData = function( owner ) {
// Accepts only:
// - Node
// - Node.ELEMENT_NODE
// - Node.DOCUMENT_NODE
// - Object
// - Any
/**
* Accepts only:
* - Node
* - Node.ELEMENT_NODE
* - Node.DOCUMENT_NODE
* - Object
* - Any
*/

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

0 comments on commit 61991f5

Please sign in to comment.
You can’t perform that action at this time.