Make BucketDataValidator public methods virtual
This class is terribly factored and not tested. * src/validate/BucketDataValidator.js (validate,format): Make methods virtual. DEV-2296master
parent
fb3cd11265
commit
c8d77085ec
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue