ember-attacher
Version:
Tooltips and popovers for Ember.js apps
24 lines (19 loc) • 446 B
JavaScript
import Ember from 'ember';
const { Logger } = Ember;
export function assert(msg, conditional) {
if (!conditional) {
throw new Error(msg);
}
}
export function debug() {
Logger.debug(...arguments);
}
export function debugOnError(msg, conditional) {
if (!conditional) {
console.error(msg); // eslint-disable-line no-console
debugger; // eslint-disable-line no-debugger
}
}
export function stripInProduction(cb) {
cb();
}