remove
Called when an attribute is removed.
remove( currentValue )
Returns
{*|false}
:
If false
is returned, the value is not removed.
Use
The following prevents removing the prop attribute if someone tries to remove the value 0:
define: {
prop: {
remove: function( currentVal ){
return currentVal !== 0;
}
}
}