docs: function bind(b, el, opts) {
  			var full = el == window, $el = $(el);
  
  			// don't bother unbinding if there is nothing to unbind
  			if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
  				return;
  
  			$el.data('blockUI.isBlocked', b);
  
  			// don't bind events when overlay is not in use or if bindEvents is false
  			if (!full || !opts.bindEvents || (b && !opts.showOverlay))
  				return;
  
  			// bind anchors and inputs for mouse and key events
  			var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove';
  			if (b)
  				$(document).bind(events, opts, handler);
  			else
  				$(document).unbind(events, handler);
  
  		// former impl...
  		//		var $e = $('a,:input');
  		//		b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
  		}