Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Dec 30, 2020
1 parent ca4aff8 commit a10787b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/directives/v-tooltip.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Tooltip from '../lib/tooltip'
import { addClasses, removeClasses } from '../utils'

export let state = {
export const state = {
enabled: true,
}

Expand Down Expand Up @@ -131,9 +131,9 @@ export function getOptions (options) {
}

export function getPlacement (value, modifiers) {
var placement = value.placement
for (var i = 0; i < positions.length; i++) {
var pos = positions[i]
let placement = value.placement
for (let i = 0; i < positions.length; i++) {
const pos = positions[i]
if (modifiers[pos]) {
placement = pos
}
Expand All @@ -154,7 +154,7 @@ export function getContent (value) {

export function createTooltip (el, value, modifiers = {}) {
const content = getContent(value)
let classes = typeof value.classes !== 'undefined' ? value.classes : directive.options.defaultClass
const classes = typeof value.classes !== 'undefined' ? value.classes : directive.options.defaultClass
const opts = {
title: content,
...getOptions({
Expand Down

0 comments on commit a10787b

Please sign in to comment.