examples/template_stealjs/steal/dev/dev.js
function( out ) {
		if(steal.options.logLevel < 2){
			Array.prototype.unshift.call(arguments, 'steal.js WARN:');
			if ( window.console && console.warn ) {
				this._logger( "warn", Array.prototype.slice.call(arguments) );
			} else if ( window.console && console.log ) {
				this._logger( "log", Array.prototype.slice.call(arguments) );
			} else if ( window.opera && window.opera.postError ) {
				opera.postError("steal.js WARNING: " + out);
			}
		}
		
	}
function( out ) {
		if(steal.options.logLevel < 2){
			Array.prototype.unshift.call(arguments, 'steal.js WARN:');
			if ( window.console && console.warn ) {
				this._logger( "warn", Array.prototype.slice.call(arguments) );
			} else if ( window.console && console.log ) {
				this._logger( "log", Array.prototype.slice.call(arguments) );
			} else if ( window.opera && window.opera.postError ) {
				opera.postError("steal.js WARNING: " + out);
			}
		}
		
	}
function ( out ) { if ( steal . options . logLevel < 2 ) { Array . prototype . unshift . call ( arguments , 'steal.js WARN:' ) ; if ( window . console && console . warn ) { this . _logger ( "warn" , Array . prototype . slice . call ( arguments ) ) ; } else if ( window . console && console . log ) { this . _logger ( "log" , Array . prototype . slice . call ( arguments ) ) ; } else if ( window . opera && window . opera . postError ) { opera . postError ( "steal.js WARNING: " + out ) ; } } }
Adds a warning message to the console.
@codestart
steal.dev.warn("something evil");
@codeend
@param {String} out the message
Adds a warning message to the console .