src/includes/constraints.js
function belongsToArea(suggestion, instance){
    var parentSuggestion = instance.selection,
        result = parentSuggestion && parentSuggestion.data && instance.bounds;

    if (result) {
        collection_util.each(instance.bounds.all, function (bound, i) {
            return (result = parentSuggestion.data[bound] === suggestion.data[bound]);
        });
    }
    return result;
}
function belongsToArea(suggestion, instance){
    var parentSuggestion = instance.selection,
        result = parentSuggestion && parentSuggestion.data && instance.bounds;

    if (result) {
        collection_util.each(instance.bounds.all, function (bound, i) {
            return (result = parentSuggestion.data[bound] === suggestion.data[bound]);
        });
    }
    return result;
}
function belongsToArea ( suggestion , instance ) { var parentSuggestion = instance . selection , result = parentSuggestion && parentSuggestion . data && instance . bounds ; if ( result ) { collection_util . each ( instance . bounds . all , function ( bound , i ) { return ( result = parentSuggestion . data [ bound ] === suggestion . data [ bound ] ) ; } ) ; } return result ; }
Compares two suggestion objects
@param suggestion
@param instance other Suggestions instance
Compares two suggestion objects