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.

19 lines
323B

  1. define( function() {
  2. /**
  3. * Determines whether an object can have data
  4. */
  5. return function( owner ) {
  6. // Accepts only:
  7. // - Node
  8. // - Node.ELEMENT_NODE
  9. // - Node.DOCUMENT_NODE
  10. // - Object
  11. // - Any
  12. /* jshint -W018 */
  13. return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
  14. };
  15. } );