Selects the current distance calculation strategy. If you use unregistered strategy, will not be changed.
(static) useDistanceCalculationStrategy(name) → {jQuery.caph.focus.nearestFocusableFinderProvider}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The strategy name to be used. |
Returns:
Example
$document.ready(function() {
$.caph.focus.init(function(nearestFocusableFinderProvider) {
nearestFocusableFinderProvider.useDistanceCalculationStrategy('sample');
});
}]);