From 49e81de913e73415deda03c5c2ae09451f36c944 Mon Sep 17 00:00:00 2001 From: DominikSerafin Date: Tue, 11 Sep 2018 21:46:01 +0200 Subject: [PATCH] Some cleanups & bump version --- .gitignore | 1 + package.json | 2 +- vuebar.js | 13 +++++++++---- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 1ad5caf..73c9a1e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ temp/ temp node_modules/ node_modules +privnotes.md diff --git a/package.json b/package.json index e82c262..b8182e3 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Vue directive for custom scrollbar that uses native scroll behavior. Lightweight, performant and without dependencies.", "author": "Dominik Serafin ", "license": "MIT", - "version": "0.0.18", + "version": "0.0.19", "private": false, "repository": { "type": "git", diff --git a/vuebar.js b/vuebar.js index c4a10df..51c6852 100644 --- a/vuebar.js +++ b/vuebar.js @@ -10,9 +10,14 @@ Vuebar \*------------------------------------*/ var Vuebar = {}; - Vuebar.install = function(Vue, options){ - options = options || {}; - options.directive = options.directive || 'bar'; + Vuebar.install = function(Vue, installOptions){ + + + /*------------------------------------*\ + Custom Directive Name + \*------------------------------------*/ + installOptions = installOptions || {}; + installOptions.directive = installOptions.directive || 'bar'; /*------------------------------------*\ @@ -663,7 +668,7 @@ /*------------------------------------*\ Directive Install \*------------------------------------*/ - Vue.directive(options.directive, { + Vue.directive(installOptions.directive, { inserted: function(el, binding, vnode){ initScrollbar.call(this, el, binding);