kaman.functions.js
function backboneOptsAsProps(subject, opts) {
    if (!opts) {
        opts = subject.options
    }

    subject.mergeOptions(subject.options, _.keys(opts));
    //removing form view.options the options that ve been merged above
    //so if we use view.getOption("opt") will return the merged opt and not the opt in view.options boject 
    subject.options=_.omit(subject.options,_.keys(opts))
    
    
    console.log("opts mergerged for ",subject);


}
function backboneOptsAsProps(subject, opts) {
    if (!opts) {
        opts = subject.options
    }

    subject.mergeOptions(subject.options, _.keys(opts));
    //removing form view.options the options that ve been merged above
    //so if we use view.getOption("opt") will return the merged opt and not the opt in view.options boject 
    subject.options=_.omit(subject.options,_.keys(opts))
    
    
    console.log("opts mergerged for ",subject);


}
function backboneOptsAsProps ( subject , opts ) { if ( ! opts ) { opts = subject . options } subject . mergeOptions ( subject . options , _ . keys ( opts ) ) ; //removing form view.options the options that ve been merged above //so if we use view.getOption("opt") will return the merged opt and not the opt in view.options boject  subject . options = _ . omit ( subject . options , _ . keys ( opts ) ) console . log ( "opts mergerged for " , subject ) ; }
It takes a Backbone Object as subject and merge all
opt as subjet properties removing the opt from view options
@param subject Backbone.Object, the object to operate over
@param opts  Object, the options to add
@return void
It takes a Backbone Object as subject and merge all opt as subjet properties removing the opt from view options