Skip to content
This repository was archived by the owner on Dec 25, 2017. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fa99a91

Browse files
committedAug 19, 2016
🐛 bug(validate): fix initial compilation error
Closes #288
1 parent 6ae8be2 commit fa99a91

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎src/const.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const VALIDATE_UPDATE = '__vue-validator-validate-update__'
2-
export const PRIORITY_VALIDATE = 16
2+
export const PRIORITY_VALIDATE = 4096
33
export const PRIORITY_VALIDATE_CLASS = 32
44
export const REGEX_FILTER = /[^|]\|[^|]/
55
export const REGEX_VALIDATE_DIRECTIVE = /^v-validate(?:$|:(.*)$)/

‎src/directives/validate.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { warn, each } from '../util'
33

44

55
export default function (Vue) {
6-
const vIf = Vue.directive('if')
76
const FragmentFactory = Vue.FragmentFactory
87
const parseDirective = Vue.parsers.directive.parseDirective
98
const {
@@ -31,7 +30,7 @@ export default function (Vue) {
3130
Vue.directive('validate', {
3231
deep: true,
3332
terminal: true,
34-
priority: vIf.priority + PRIORITY_VALIDATE,
33+
priority: PRIORITY_VALIDATE,
3534
params: ['group', 'field', 'detect-blur', 'detect-change', 'initial', 'classes'],
3635

3736
paramWatchers: {

0 commit comments

Comments
 (0)
This repository has been archived.