code: function onclick(event) {
  			autoDismissNodes.forEach(function(autoDismissNode) {
  				var excludeNodeInDocument = false;
  				var excluded = autoDismissNode.excludeNodes.some(function(excludeNode) {
  					if(document.body.contains(excludeNode)) {
  						excludeNodeInDocument = true;
  						return excludeNode.contains(event.target);
  					}
  					return false;
  				});
  				if (excludeNodeInDocument && !excluded) {
  					try {
  						autoDismissNode.dismiss(event);
  					} catch (e) {
  						if (typeof console !== "undefined" && console) { //$NON-NLS-0$
  							console.error(e && e.message);
  						}
  					}
  				}
  			});
  			autoDismissNodes = autoDismissNodes.filter(function(autoDismissNode) {
  				// true if at least one excludeNode is in document.body
  				return autoDismissNode.excludeNodes.some(function(excludeNode) {
  					return document.body.contains(excludeNode);
  				});
  			});
  		}
docs: auto dismissal.  Click anywhere else means close.