Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Commit

Permalink
Some cleanups & bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikSerafin committed Sep 11, 2018
1 parent f595d1a commit 49e81de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ temp/
temp
node_modules/
node_modules
privnotes.md
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Vue directive for custom scrollbar that uses native scroll behavior. Lightweight, performant and without dependencies.",
"author": "Dominik Serafin <dominikdsgnr@gmail.com>",
"license": "MIT",
"version": "0.0.18",
"version": "0.0.19",
"private": false,
"repository": {
"type": "git",
Expand Down
13 changes: 9 additions & 4 deletions vuebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';


/*------------------------------------*\
Expand Down Expand Up @@ -663,7 +668,7 @@
/*------------------------------------*\
Directive Install
\*------------------------------------*/
Vue.directive(options.directive, {
Vue.directive(installOptions.directive, {

inserted: function(el, binding, vnode){
initScrollbar.call(this, el, binding);
Expand Down

0 comments on commit 49e81de

Please sign in to comment.