lib/require.js
function() {
			this.loaded		= false;
			this.stopped	= true;

			var current = Script.current(this.loader);

			// Unbind and remove the relevant tag, if any.
			this.destroy();

			// Welcome traveller!  You've discovered the ugly truth!  This is
			// the 'magic' of the require script, allowing execution to be
			// halted until dependencies have been satisfied.  Basically it:
			//
			// * Sets up top level error handlers
			// * throws an error
			// * catches that error at the top level
			// * reverts the handling functionality back to its original state
			//
			// It is definitely not pretty, but by doing so we can halt
			// execution of a script at an arbitrary point, as long as the stack
			// does not have any `try{ ... }catch{ ... }` blocks along the way.
			var existing	= window.onerror,
				tag			= this.tag;

			function handler(event) {
				if (event.target !== window) {
					return true;
				}

				if (root.removeEventListener) {
					root.removeEventListener('error', handler, true);
				}else root.detachEvent('onerror', handler);

				window.onerror = existing;
				return Event.cancel(event);
			}

			window.onerror = handler;
			if (root.addEventListener) {
				root.addEventListener('error', handler, true);
			}else root.attachEvent('onerror', handler);

			throw STOP_EVENT;

		}
function() {
			this.loaded		= false;
			this.stopped	= true;

			var current = Script.current(this.loader);

			// Unbind and remove the relevant tag, if any.
			this.destroy();

			// Welcome traveller!  You've discovered the ugly truth!  This is
			// the 'magic' of the require script, allowing execution to be
			// halted until dependencies have been satisfied.  Basically it:
			//
			// * Sets up top level error handlers
			// * throws an error
			// * catches that error at the top level
			// * reverts the handling functionality back to its original state
			//
			// It is definitely not pretty, but by doing so we can halt
			// execution of a script at an arbitrary point, as long as the stack
			// does not have any `try{ ... }catch{ ... }` blocks along the way.
			var existing	= window.onerror,
				tag			= this.tag;

			function handler(event) {
				if (event.target !== window) {
					return true;
				}

				if (root.removeEventListener) {
					root.removeEventListener('error', handler, true);
				}else root.detachEvent('onerror', handler);

				window.onerror = existing;
				return Event.cancel(event);
			}

			window.onerror = handler;
			if (root.addEventListener) {
				root.addEventListener('error', handler, true);
			}else root.attachEvent('onerror', handler);

			throw STOP_EVENT;

		}
function ( ) { this . loaded = false ; this . stopped = true ; var current = Script . current ( this . loader ) ; // Unbind and remove the relevant tag, if any.
 this . destroy ( ) ; // Welcome traveller!  You've discovered the ugly truth!  This is
 // the 'magic' of the require script, allowing execution to be
 // halted until dependencies have been satisfied.  Basically it:
 //
 // * Sets up top level error handlers
 // * throws an error
 // * catches that error at the top level
 // * reverts the handling functionality back to its original state
 //
 // It is definitely not pretty, but by doing so we can halt
 // execution of a script at an arbitrary point, as long as the stack
 // does not have any `try{ ... }catch{ ... }` blocks along the way.
 var existing = window . onerror , tag = this . tag ; function handler ( event ) { if ( event . target !== window ) { return true ; } if ( root . removeEventListener ) { root . removeEventListener ( 'error' , handler , true ) ; } else root . detachEvent ( 'onerror' , handler ) ; window . onerror = existing ; return Event . cancel ( event ) ; } window . onerror = handler ; if ( root . addEventListener ) { root . addEventListener ( 'error' , handler , true ) ; } else root . attachEvent ( 'onerror' , handler ) ; throw STOP_EVENT ; }
Stop this `Script` from executing, even if this function has been called from within the actual code referenced by `Script`.
Stop this Script from executing even if this function has been called from within the actual code referenced by Script .