blob: e00f7538b3961c0a529adf0ea6ee70b72f83ad68 [file] [log] [blame]
define( function() {
"use strict";
/**
* Determines whether an object can have data
*/
return function( owner ) {
// Accepts only:
// - Node
// - Node.ELEMENT_NODE
// - Node.DOCUMENT_NODE
// - Object
// - Any
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
};
} );