Comparing version
@@ -9,3 +9,3 @@ "use strict"; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var directiveName = options.name || 'ref' | ||
var directiveName = options.name || 'ref'; | ||
Vue.directive(directiveName, { | ||
@@ -33,5 +33,3 @@ bind: function bind(el, binding, vnode) { | ||
unbind: function unbind(el, binding, vnode) { | ||
Vue.nextTick(function () { | ||
binding.value(null, vnode.key); | ||
}); | ||
binding.value(null, vnode.key); | ||
} | ||
@@ -38,0 +36,0 @@ }); |
{ | ||
"name": "vue-ref", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"title": "Vue Ref", | ||
@@ -5,0 +5,0 @@ "description": "use the callback to get a reference like react", |
4160
-1.14%34
-5.56%