Skip to content

Commit

Permalink
Incorporated most recent set of change requests from rwjblue
Browse files Browse the repository at this point in the history
  • Loading branch information
lupestro authored and locks committed Mar 3, 2018
1 parent 3a188cb commit 4bbb29b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/helpers/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { InternalHelperReference } from '../utils/references';
*/
function log({ positional }: CapturedArguments) {
/* eslint-disable no-console */
console.log.apply(console, positional.value());
console.log(...positional.value());
/* eslint-enable no-console */
}

Expand Down
10 changes: 2 additions & 8 deletions packages/ember-routing/lib/system/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,7 @@ const EmberRouter = EmberObject.extend(Evented, {

if (DEBUG) {
if (get(this, 'namespace.LOG_TRANSITIONS_INTERNAL')) {
/* eslint-disable no-console */
if (console.debug) {
routerMicrolib.log = console.debug.bind(console);
} else {
routerMicrolib.log = console.log.bind(console);
}
/* eslint-enable no-console */
routerMicrolib.log = console.log.bind(console); // eslint-disable-line no-console
}
}

Expand Down Expand Up @@ -1188,7 +1182,7 @@ function logError(_error, initialMessage) {
if (typeof error === 'string') { errorArgs.push(error); }
}

console.error.apply(console, errorArgs); //eslint-disable-line no-console
console.error(...errorArgs); //eslint-disable-line no-console
}

/**
Expand Down
6 changes: 3 additions & 3 deletions packages/ember/tests/routing/basic_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { Application, Engine } from 'ember-application';
import { Transition } from 'router';
import { getTextOf } from 'internal-test-helpers';

let Router, App, router, registry, container, originalLoggerError, originalRenderSupport, rootElement;
let Router, App, router, registry, container, originalConsoleError, originalRenderSupport, rootElement;

function bootApplication() {
router = container.lookup('router:main');
Expand Down Expand Up @@ -88,7 +88,7 @@ QUnit.module('Basic Routing', {
setTemplate('homepage', compile('<h3 class="megatroll">Megatroll</h3><p>{{model.home}}</p>'));
setTemplate('camelot', compile('<section><h3 class="silly">Is a silly place</h3></section>'));

originalLoggerError = console.error; // eslint-disable-line no-console
originalConsoleError = console.error; // eslint-disable-line no-console
originalRenderSupport = ENV._ENABLE_RENDER_SUPPORT;

ENV._ENABLE_RENDER_SUPPORT = true;
Expand All @@ -101,7 +101,7 @@ QUnit.module('Basic Routing', {
App = null;

setTemplates({});
console.error = originalLoggerError; // eslint-disable-line no-console
console.error = originalConsoleError; // eslint-disable-line no-console
ENV._ENABLE_RENDER_SUPPORT = originalRenderSupport;
});
}
Expand Down

0 comments on commit 4bbb29b

Please sign in to comment.