function initOptionsSet(options){
            var optionsSetsLength = optionsSets.length;
            for(var i=0; i<optionsSetsLength; i++)
            {
                if (Yox.compare(optionsSets[i], options))
                    return i;
            }

            optionsSets.push(options);
            return optionsSetsLength;
        }
// If the given options object is equal to any in the options set, return the existing set's index. Otherwise, add the new set and return its index:
If the given options object is equal to any in the options set, return the existing set's index. Otherwise, add the new set and return its index.
If the given options object is equal to any in the options set return the existing set ' s index . Otherwise add the new set and return its index .
function initOptionsSet(options){
            var optionsSetsLength = optionsSets.length;
            for(var i=0; i<optionsSetsLength; i++)
            {
                if (Yox.compare(optionsSets[i], options))
                    return i;
            }
            optionsSets.push(options);
            return optionsSetsLength;
        }
function initOptionsSet ( options ) { var optionsSetsLength = optionsSets . length ; for ( var i = 0 ; i < optionsSetsLength ; i ++ ) { if ( Yox . compare ( optionsSets [ i ] , options ) ) return i ; } optionsSets . push ( options ) ; return optionsSetsLength ; }
If the given options object is equal to any in the options set, return the existing set's index.
If the given options object is equal to any in the options set return the existing set ' s index .