retrieve if needed

This commit is contained in:
alecmerdler 2017-01-25 16:11:19 -08:00
parent c9fa22b093
commit 43f95c52a0
2 changed files with 12 additions and 11 deletions

View file

@ -27,8 +27,8 @@ module.exports = function(grunt) {
build: {
src: [
'../static/lib/**/*.js',
'../static/js/**/*.js',
'../static/build/*.js',
'../static/js/**/*.js',
'../static/dist/template-cache.js',
'!../static/js/**/*.spec.js'
],

View file

@ -3,29 +3,29 @@ import * as Raven from 'raven-js';
quayConfig.$inject = [
'$provide',
'$injector',
'INJECTED_CONFIG',
'cfpLoadingBarProvider',
'$tooltipProvider',
'$compileProvider',
'RestangularProvider',
'$analyticsProvider',
];
export function quayConfig(
$provide,
INJECTED_CONFIG,
cfpLoadingBarProvider,
$tooltipProvider,
$compileProvider,
RestangularProvider,
$analyticsProvider) {
$provide: ng.auto.IProvideService,
$injector: ng.auto.IInjectorService,
INJECTED_CONFIG: any,
cfpLoadingBarProvider: any,
$tooltipProvider: any,
$compileProvider: ng.ICompileProvider,
RestangularProvider: any) {
cfpLoadingBarProvider.includeSpinner = false;
// decorate the tooltip getter
var tooltipFactory = $tooltipProvider.$get[$tooltipProvider.$get.length - 1];
var tooltipFactory: any = $tooltipProvider.$get[$tooltipProvider.$get.length - 1];
$tooltipProvider.$get[$tooltipProvider.$get.length - 1] = function($window: ng.IWindowService) {
if ('ontouchstart' in $window) {
var existing = tooltipFactory.apply(this, arguments);
var existing: any = tooltipFactory.apply(this, arguments);
return function(element) {
// Note: We only disable bs-tooltip's themselves. $tooltip is used for other things
// (such as the datepicker), so we need to be specific when canceling it.
@ -53,6 +53,7 @@ export function quayConfig(
// Configure analytics.
if (INJECTED_CONFIG && INJECTED_CONFIG.MIXPANEL_KEY) {
let $analyticsProvider: any = $injector.get('$analyticsProvider');
$analyticsProvider.virtualPageviews(true);
}