dist/backbone.storage.js
function _ensureModel(model) {
      if (model instanceof this.model) {
        return model;
      } else if (typeof model === "object") {
        return new this.model(model);
      } else {
        return new this.model({ id: model });
      }
    }
function _ensureModel(model) {
      if (model instanceof this.model) {
        return model;
      } else if (typeof model === "object") {
        return new this.model(model);
      } else {
        return new this.model({ id: model });
      }
    }
function _ensureModel ( model ) { if ( model instanceof this . model ) { return model ; } else if ( typeof model === "object" ) { return new this . model ( model ) ; } else { return new this . model ( { id : model } ) ; } }
Ensure that we have a real model from an id, object, or model.

@private
@instance
@method _ensureModel
@memberOf Storage
@params {Number|String|Object|Backbone.Model} - An id, object, or model.
@returns {Backbone.Model} - The model.
Ensure that we have a real model from an id object or model .