dist/on.js
function (node, callback) {
			// important note!
			// starts paused
			//
			var bHandle = on(node.ownerDocument.documentElement, 'click', function (e) {
				var target = e.target;
				if (target.nodeType !== 1) {
					target = target.parentNode;
				}
				if (target && !node.contains(target)) {
					callback(e);
				}
			});

			var handle = {
				state: 'resumed',
				resume: function () {
					setTimeout(function () {
						bHandle.resume();
					}, 100);
					this.state = 'resumed';
				},
				pause: function () {
					bHandle.pause();
					this.state = 'paused';
				},
				remove: function () {
					bHandle.remove();
					this.state = 'removed';
				}
			};
			handle.pause();

			return handle;
		}
function (node, callback) {
			// important note!
			// starts paused
			//
			var bHandle = on(node.ownerDocument.documentElement, 'click', function (e) {
				var target = e.target;
				if (target.nodeType !== 1) {
					target = target.parentNode;
				}
				if (target && !node.contains(target)) {
					callback(e);
				}
			});

			var handle = {
				state: 'resumed',
				resume: function () {
					setTimeout(function () {
						bHandle.resume();
					}, 100);
					this.state = 'resumed';
				},
				pause: function () {
					bHandle.pause();
					this.state = 'paused';
				},
				remove: function () {
					bHandle.remove();
					this.state = 'removed';
				}
			};
			handle.pause();

			return handle;
		}
function ( node , callback ) { // important note! // starts paused // var bHandle = on ( node . ownerDocument . documentElement , 'click' , function ( e ) { var target = e . target ; if ( target . nodeType !== 1 ) { target = target . parentNode ; } if ( target && ! node . contains ( target ) ) { callback ( e ) ; } } ) ; var handle = { state : 'resumed' , resume : function ( ) { setTimeout ( function ( ) { bHandle . resume ( ) ; } , 100 ) ; this . state = 'resumed' ; } , pause : function ( ) { bHandle . pause ( ) ; this . state = 'paused' ; } , remove : function ( ) { bHandle . remove ( ) ; this . state = 'removed' ; } } ; handle . pause ( ) ; return handle ; }
custom - used for popups 'n stuff
custom - used for popups n stuff