lib/class/options.js
function setOptions( options ){
        if( this.addListener ){
            for( var opt in options ){
                if( typeof( options[ opt ] ) !== 'function' || !(/^on[A-z]/).test(opt)){
                    continue;
                }
                this.addListener( removeOn( opt ), options[ opt ]);
                delete options[opt];
            }
        }
        this.options = merge.apply(null, append([{}, this.options], arguments ) );
        return this;
    }
function setOptions( options ){
        if( this.addListener ){
            for( var opt in options ){
                if( typeof( options[ opt ] ) !== 'function' || !(/^on[A-z]/).test(opt)){
                    continue;
                }
                this.addListener( removeOn( opt ), options[ opt ]);
                delete options[opt];
            }
        }
        this.options = merge.apply(null, append([{}, this.options], arguments ) );
        return this;
    }
function setOptions ( options ) { if ( this . addListener ) { for ( var opt in options ) { if ( typeof ( options [ opt ] ) !== 'function' || ! ( / ^on[A-z] / ) . test ( opt ) ) { continue ; } this . addListener ( removeOn ( opt ) , options [ opt ] ) ; delete options [ opt ] ; } } this . options = merge . apply ( null , append ( [ { } , this . options ] , arguments ) ) ; return this ; }
Over rides internal values with supplied object
@method module:tastypie/lib/class/options#setOptions
@param {Object} options The options object to use as configuration overrides
Over rides internal values with supplied object