code: function(b) {
          if (b instanceof Model) {
            if (this.constructor !== b.constructor) return false;
            b = b.attributes;
          }
          return _.isEqual(this.attributes, b);
        }
docs: Custom Underscore equality method.