1
0
Fork 0

Make BucketDataValidator public methods virtual

This class is terribly factored and not tested.

* src/validate/BucketDataValidator.js
  (validate,format): Make methods virtual.

DEV-2296
master
Mike Gerwitz 2017-01-24 14:20:34 -05:00
parent fb3cd11265
commit c8d77085ec
1 changed files with 2 additions and 2 deletions

View File

@ -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;