lib/application.js
function(data) {
			if (globalConfig.debug) {
				// We grab console via getGlobal() so we can stub it out in tests
				var globalConsole = this.getGlobal('console');
				if (globalConsole && globalConsole.warn) {
					globalConsole.warn(data);
				}
			} else {
				application.fire('warning', data);
			}
		}
function(data) {
			if (globalConfig.debug) {
				// We grab console via getGlobal() so we can stub it out in tests
				var globalConsole = this.getGlobal('console');
				if (globalConsole && globalConsole.warn) {
					globalConsole.warn(data);
				}
			} else {
				application.fire('warning', data);
			}
		}
function ( data ) { if ( globalConfig . debug ) { // We grab console via getGlobal() so we can stub it out in tests var globalConsole = this . getGlobal ( 'console' ) ; if ( globalConsole && globalConsole . warn ) { globalConsole . warn ( data ) ; } } else { application . fire ( 'warning' , data ) ; } }
Signals that an warning has occurred.
If in development mode, console.warn is invoked.
If in production mode, an event is fired.
@param {*} data A message string or arbitrary data
@returns {void}
Signals that an warning has occurred . If in development mode console . warn is invoked . If in production mode an event is fired .