From b1058f3e5fff8bde2be31339f9058aa8eadeee7f Mon Sep 17 00:00:00 2001 From: John Leider Date: Wed, 15 Jan 2020 19:50:33 -0500 Subject: [PATCH] fix(application-service): overwrite location sizes when registering new app components the current functionality updates the public values by reducing everything registered for each component. this is not necessary and will be removed in the v3 refactor fixes #9797 --- packages/vuetify/dev/App.vue | 11 ++++------- packages/vuetify/dev/index.js | 3 +++ packages/vuetify/dev/router.js | 4 ++-- packages/vuetify/src/services/application/index.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/vuetify/dev/App.vue b/packages/vuetify/dev/App.vue index 3930116a33bd..f805a33603b5 100644 --- a/packages/vuetify/dev/App.vue +++ b/packages/vuetify/dev/App.vue @@ -1,17 +1,14 @@ diff --git a/packages/vuetify/dev/index.js b/packages/vuetify/dev/index.js index 511b3c412013..dd8776dcdf2e 100644 --- a/packages/vuetify/dev/index.js +++ b/packages/vuetify/dev/index.js @@ -4,6 +4,9 @@ import Vuetify from 'vuetify' import * as locales from '../src/locale' import router from './router' import '@mdi/font/css/materialdesignicons.css' +import Playground from './Playground' + +Vue.component('playground', Playground) Vue.config.performance = true diff --git a/packages/vuetify/dev/router.js b/packages/vuetify/dev/router.js index 3284b9ed60ff..a829612bb61f 100644 --- a/packages/vuetify/dev/router.js +++ b/packages/vuetify/dev/router.js @@ -4,10 +4,10 @@ import Router from 'vue-router' Vue.use(Router) const component1 = { - template: `
Page 1
`, + template: ``, } const component2 = { - template: `
Page 2
`, + template: ``, } const router = new Router({ diff --git a/packages/vuetify/src/services/application/index.ts b/packages/vuetify/src/services/application/index.ts index 871c56bd6aed..0e4c10c90e23 100644 --- a/packages/vuetify/src/services/application/index.ts +++ b/packages/vuetify/src/services/application/index.ts @@ -36,7 +36,7 @@ export class Application extends Service implements IApplication { location: TargetProp, size: number ) { - this.application[location][uid] = size + this.application[location] = { [uid]: size } this.update(location) }