Skip to content

Commit

Permalink
revert: #2185 closes #2209
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Aug 12, 2019
1 parent 4e697cb commit e4b54b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 2 additions & 6 deletions src/components/provider.js
Expand Up @@ -166,7 +166,7 @@ export const ValidationProvider = {
const ctx = createValidationCtx(this);

// Gracefully handle non-existent scoped slots.
let slot = this.$scopedSlots.default;
const slot = this.$scopedSlots.default;
/* istanbul ignore next */
if (!isCallable(slot)) {
if (process.env.NODE_ENV !== 'production') {
Expand Down Expand Up @@ -379,10 +379,6 @@ export function createCommonHandlers (ctx) {
ctx.$veeDebounce = ctx.debounce;
}

onValidate._vee_isUnique = true;
onBlur._vee_isUnique = true;
onInput._vee_isUnique = true;

return { onInput, onBlur, onValidate };
}

Expand All @@ -407,7 +403,7 @@ function addListeners (node) {
}

function createValuesLookup (ctx) {
let providers = ctx.$_veeObserver.refs;
const providers = ctx.$_veeObserver.refs;

return ctx.fieldDeps.reduce((acc, depName) => {
if (!providers[depName]) {
Expand Down
3 changes: 0 additions & 3 deletions src/utils/vnode.js
Expand Up @@ -66,9 +66,6 @@ export function mergeVNodeListeners (obj, eventName, handler) {
// no listeners, create the array.
if (isNullOrUndefined(obj[eventName])) {
obj[eventName] = [];
} else {
// clean up the array #2185
obj[eventName] = obj[eventName].filter(ev => !ev._vee_isUnique);
}

obj[eventName].push(handler);
Expand Down

0 comments on commit e4b54b8

Please sign in to comment.