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);