examples/template_stealjs/steal/steal.js
function(options){
			
			var stel = new steal.p.init(options),
				rootSrc = stel.options.rootSrc;
			
			if(stel.unique && rootSrc){
				// the .js is b/c we are not adding that automatically until
				// load because we defer 'type' determination until then
				if(!steals[rootSrc] && ! steals[rootSrc+".js"]){  //if we haven't loaded it before
					steals[rootSrc] = stel;
				} else{ // already have this steal
					stel = steals[rootSrc];
					// extend the old stolen file with any new options
					extend(stel.options, typeof options === "string" ? {} : options)
				}
			}
			
			return stel;
		}
function(options){
			
			var stel = new steal.p.init(options),
				rootSrc = stel.options.rootSrc;
			
			if(stel.unique && rootSrc){
				// the .js is b/c we are not adding that automatically until
				// load because we defer 'type' determination until then
				if(!steals[rootSrc] && ! steals[rootSrc+".js"]){  //if we haven't loaded it before
					steals[rootSrc] = stel;
				} else{ // already have this steal
					stel = steals[rootSrc];
					// extend the old stolen file with any new options
					extend(stel.options, typeof options === "string" ? {} : options)
				}
			}
			
			return stel;
		}
function ( options ) { var stel = new steal . p . init ( options ) , rootSrc = stel . options . rootSrc ; if ( stel . unique && rootSrc ) { // the .js is b/c we are not adding that automatically until // load because we defer 'type' determination until then if ( ! steals [ rootSrc ] && ! steals [ rootSrc + ".js" ] ) { //if we haven't loaded it before steals [ rootSrc ] = stel ; } else { // already have this steal stel = steals [ rootSrc ] ; // extend the old stolen file with any new options extend ( stel . options , typeof options === "string" ? { } : options ) } } return stel ; }
adds a new steal and throws an error if the script doesn't load this also checks the steals map
adds a new steal and throws an error if the script doesn t load this also checks the steals map