dist/tablesaw.js
function encasedCallback( e, namespace, triggeredElement ){
			var result;

			if( e._namespace && e._namespace !== namespace ) {
				return;
			}

			e.data = data;
			e.namespace = e._namespace;

			var returnTrue = function(){
				return true;
			};

			e.isDefaultPrevented = function(){
				return false;
			};

			var originalPreventDefault = e.preventDefault;
			var preventDefaultConstructor = function(){
				if( originalPreventDefault ) {
					return function(){
						e.isDefaultPrevented = returnTrue;
						originalPreventDefault.call(e);
					};
				} else {
					return function(){
						e.isDefaultPrevented = returnTrue;
						e.returnValue = false;
					};
				}
			};

			// thanks https://github.com/jonathantneal/EventListener
			e.target = triggeredElement || e.target || e.srcElement;
			e.preventDefault = preventDefaultConstructor();
			e.stopPropagation = e.stopPropagation || function () {
				e.cancelBubble = true;
			};

			result = originalCallback.apply(this, [ e ].concat( e._args ) );

			if( result === false ){
				e.preventDefault();
				e.stopPropagation();
			}

			return result;
		}
function encasedCallback( e, namespace, triggeredElement ){
			var result;

			if( e._namespace && e._namespace !== namespace ) {
				return;
			}

			e.data = data;
			e.namespace = e._namespace;

			var returnTrue = function(){
				return true;
			};

			e.isDefaultPrevented = function(){
				return false;
			};

			var originalPreventDefault = e.preventDefault;
			var preventDefaultConstructor = function(){
				if( originalPreventDefault ) {
					return function(){
						e.isDefaultPrevented = returnTrue;
						originalPreventDefault.call(e);
					};
				} else {
					return function(){
						e.isDefaultPrevented = returnTrue;
						e.returnValue = false;
					};
				}
			};

			// thanks https://github.com/jonathantneal/EventListener
			e.target = triggeredElement || e.target || e.srcElement;
			e.preventDefault = preventDefaultConstructor();
			e.stopPropagation = e.stopPropagation || function () {
				e.cancelBubble = true;
			};

			result = originalCallback.apply(this, [ e ].concat( e._args ) );

			if( result === false ){
				e.preventDefault();
				e.stopPropagation();
			}

			return result;
		}
function encasedCallback ( e , namespace , triggeredElement ) { var result ; if ( e . _namespace && e . _namespace !== namespace ) { return ; } e . data = data ; e . namespace = e . _namespace ; var returnTrue = function ( ) { return true ; } ; e . isDefaultPrevented = function ( ) { return false ; } ; var originalPreventDefault = e . preventDefault ; var preventDefaultConstructor = function ( ) { if ( originalPreventDefault ) { return function ( ) { e . isDefaultPrevented = returnTrue ; originalPreventDefault . call ( e ) ; } ; } else { return function ( ) { e . isDefaultPrevented = returnTrue ; e . returnValue = false ; } ; } } ; // thanks https://github.com/jonathantneal/EventListener e . target = triggeredElement || e . target || e . srcElement ; e . preventDefault = preventDefaultConstructor ( ) ; e . stopPropagation = e . stopPropagation || function ( ) { e . cancelBubble = true ; } ; result = originalCallback . apply ( this , [ e ] . concat ( e . _args ) ) ; if ( result === false ) { e . preventDefault ( ) ; e . stopPropagation ( ) ; } return result ; }
NOTE the `triggeredElement` is purely for custom events from IE
NOTE the triggeredElement is purely for custom events from IE