From 647075d4c5c607fa5ea27ba95cee0fad96935ea8 Mon Sep 17 00:00:00 2001 From: xidedix Date: Tue, 5 Jun 2018 16:33:52 +0200 Subject: [PATCH] refactor: `getStyles()` back to `@coreui/coreui` version `^2.0.2` --- src/utils/getStyle.js | 10 ---------- src/views/dashboard/CalloutChartExample.vue | 3 +-- src/views/dashboard/CardLine1ChartExample.vue | 3 +-- src/views/dashboard/CardLine2ChartExample.vue | 3 +-- src/views/dashboard/MainChartExample.vue | 4 +--- 5 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 src/utils/getStyle.js diff --git a/src/utils/getStyle.js b/src/utils/getStyle.js deleted file mode 100644 index efc89f21..00000000 --- a/src/utils/getStyle.js +++ /dev/null @@ -1,10 +0,0 @@ -// todo -// temp getStyle fix for IE -const getStyle = (prop, node) => { - const root = node || document.querySelector(':root') - const value = window.getComputedStyle(root).getPropertyValue(prop).trim() - // console.log('utils/getStyle', value) - return value -} - -export default getStyle diff --git a/src/views/dashboard/CalloutChartExample.vue b/src/views/dashboard/CalloutChartExample.vue index 93d86d79..b813ecf1 100644 --- a/src/views/dashboard/CalloutChartExample.vue +++ b/src/views/dashboard/CalloutChartExample.vue @@ -1,8 +1,7 @@