packages/rebound-data/lib/model.js
function(attr, options) {
    options = options ? _.clone(options) : {};
    var val = this.get(attr);
    if(!_.isBoolean(val)) console.error('Tried to toggle non-boolean value ' + attr +'!', this);
    return this.set(attr, !val, options);
  }
function(attr, options) {
    options = options ? _.clone(options) : {};
    var val = this.get(attr);
    if(!_.isBoolean(val)) console.error('Tried to toggle non-boolean value ' + attr +'!', this);
    return this.set(attr, !val, options);
  }
function ( attr , options ) { options = options ? _ . clone ( options ) : { } ; var val = this . get ( attr ) ; if ( ! _ . isBoolean ( val ) ) console . error ( 'Tried to toggle non-boolean value ' + attr + '!' , this ) ; return this . set ( attr , ! val , options ) ; }
New convenience function to toggle boolean values in the Model.
New convenience function to toggle boolean values in the Model .