Write your own setOptions method.

You could probably do something like (untested):

setOptions: function(options){
    if (options.B) options.A = true;
    Options.prototype.setOptions.call(this, options);
}

I'd personally just not do it, though. Imo options should be optional.
If option B breaks unless option A has a specific value, how optional
is option A?

Reply via email to