vue-verify
Advanced tools
Comparing version 0.2.2 to 0.3.0
/*! | ||
* vue-verify 0.2.1 | ||
* build in November 20th 2015, 14:37:53 | ||
* vue-verify 0.3.0 | ||
* build in December 15th 2015, 17:10:23 | ||
*/ | ||
@@ -217,3 +217,7 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
function equalTo(val, modelPath) { | ||
return val === this.$get(modelPath) | ||
} | ||
/** | ||
@@ -228,3 +232,4 @@ * export(s) | ||
min: min, | ||
max: max | ||
max: max, | ||
equalTo: equalTo | ||
} | ||
@@ -285,3 +290,3 @@ | ||
var verifyFn = self.methods[rule] | ||
var result = verifyFn(val, arg) | ||
var result = verifyFn.call(self.vm, val, arg) | ||
@@ -288,0 +293,0 @@ if (typeof result === "boolean") { |
{ | ||
"name": "vue-verify", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "verification plugin of vue", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -135,3 +135,7 @@ /** | ||
function equalTo(val, modelPath) { | ||
return val === this.$get(modelPath) | ||
} | ||
/** | ||
@@ -146,3 +150,4 @@ * export(s) | ||
min: min, | ||
max: max | ||
max: max, | ||
equalTo: equalTo | ||
} |
@@ -49,3 +49,3 @@ /** | ||
var verifyFn = self.methods[rule] | ||
var result = verifyFn(val, arg) | ||
var result = verifyFn.call(self.vm, val, arg) | ||
@@ -52,0 +52,0 @@ if (typeof result === "boolean") { |
Sorry, the diff of this file is not supported yet
126628
1253