Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-01-24 14:20:34 -0500
committerMike Gerwitz <gerwitzm@lovullo.com>2017-01-27 15:57:43 -0500
commitc8d77085ec7e64e6f9723c85252ac0f9b18aedf7 (patch)
treebbff914a442286dcda56062bdfbf306dc8d5ae96
parentfb3cd1126557fa9ba3a94f19666f390ae2478b04 (diff)
downloadliza-c8d77085ec7e64e6f9723c85252ac0f9b18aedf7.tar.gz
liza-c8d77085ec7e64e6f9723c85252ac0f9b18aedf7.tar.bz2
liza-c8d77085ec7e64e6f9723c85252ac0f9b18aedf7.zip
Make BucketDataValidator public methods virtual
This class is terribly factored and not tested. * src/validate/BucketDataValidator.js (validate,format): Make methods virtual. DEV-2296
-rw-r--r--src/validate/BucketDataValidator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validate/BucketDataValidator.js b/src/validate/BucketDataValidator.js
index 6a88db5..402b5b4 100644
--- a/src/validate/BucketDataValidator.js
+++ b/src/validate/BucketDataValidator.js
@@ -78,7 +78,7 @@ module.exports = Class( 'BucketDataValidator',
*
* @return {Object.<Array.<string>>} formatted data
*/
- 'public validate': function( data, err, inplace )
+ 'virtual public validate': function( data, err, inplace )
{
err = err || function() {};
inplace = !!inplace;
@@ -125,7 +125,7 @@ module.exports = Class( 'BucketDataValidator',
*
* @return {Array.<string>} formatted data
*/
- 'public format': function( data, inplace )
+ 'virtual public format': function( data, inplace )
{
inplace = !!inplace;