vue-scrollto
Advanced tools
Comparing version 2.18.2 to 2.19.0
{ | ||
"name": "vue-scrollto", | ||
"version": "2.18.2", | ||
"version": "2.19.0", | ||
"description": "Adds a directive that listens for click events and scrolls to elements.", | ||
@@ -5,0 +5,0 @@ "main": "vue-scrollto.js", |
@@ -53,3 +53,3 @@ import scrollTo from './scrollTo' | ||
export default { | ||
const directiveHooks = { | ||
bind(el, binding) { | ||
@@ -65,5 +65,14 @@ getBinding(el).binding = binding | ||
getBinding(el).binding = binding | ||
}, | ||
} | ||
} | ||
export default { | ||
bind: directiveHooks.bind, | ||
unbind: directiveHooks.unbind, | ||
update: directiveHooks.update, | ||
beforeMount: directiveHooks.bind, | ||
unmounted: directiveHooks.unbind, | ||
updated: directiveHooks.update, | ||
scrollTo, | ||
bindings, | ||
} |
@@ -7,3 +7,4 @@ import VueScrollTo from './directive' | ||
Vue.directive('scroll-to', VueScrollTo) | ||
Vue.prototype.$scrollTo = VueScrollTo.scrollTo | ||
const properties = Vue.config.globalProperties || Vue.prototype | ||
properties.$scrollTo = VueScrollTo.scrollTo | ||
} | ||
@@ -15,3 +16,3 @@ | ||
window.VueScrollTo.scroller = scroller | ||
window.Vue.use(install) | ||
if (window.Vue.use) window.Vue.use(install) | ||
} | ||
@@ -18,0 +19,0 @@ |
/*! | ||
* vue-scrollto v2.18.2 | ||
* vue-scrollto v2.19.0 | ||
* (c) 2019 Randjelovic Igor | ||
@@ -487,3 +487,3 @@ * @license MIT | ||
var VueScrollTo = { | ||
var directiveHooks = { | ||
bind: function bind(el, binding) { | ||
@@ -501,3 +501,11 @@ getBinding(el).binding = binding; | ||
getBinding(el).binding = binding; | ||
}, | ||
} | ||
}; | ||
var VueScrollTo = { | ||
bind: directiveHooks.bind, | ||
unbind: directiveHooks.unbind, | ||
update: directiveHooks.update, | ||
beforeMount: directiveHooks.bind, | ||
unmounted: directiveHooks.unbind, | ||
updated: directiveHooks.update, | ||
scrollTo: _scroller, | ||
@@ -510,3 +518,4 @@ bindings: bindings | ||
Vue.directive('scroll-to', VueScrollTo); | ||
Vue.prototype.$scrollTo = VueScrollTo.scrollTo; | ||
var properties = Vue.config.globalProperties || Vue.prototype; | ||
properties.$scrollTo = VueScrollTo.scrollTo; | ||
}; | ||
@@ -518,3 +527,3 @@ | ||
window.VueScrollTo.scroller = scroller; | ||
window.Vue.use(install); | ||
if (window.Vue.use) window.Vue.use(install); | ||
} | ||
@@ -521,0 +530,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38346
821