tuiHoneyPot

front and back end of my TUI honeypot
Log | Files | Refs | README

acceptData.js (318B)


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