不要怂,就是干,撸起袖子干!

Commit 8c5c8283 by Mick Hansen

fix issue for @thanpolas

1 parent bf30982c
Showing with 2 additions and 2 deletions
......@@ -185,8 +185,6 @@ module.exports = (function() {
return self._hasReadOnlyAttributes && self._readOnlyAttributes.indexOf(key) !== -1
})
this.DAO.prototype.rawAttributes = this.rawAttributes;
if (this.options.instanceMethods) {
Utils._.each(this.options.instanceMethods, function(fct, name) {
self.DAO.prototype[name] = fct
......@@ -292,6 +290,8 @@ module.exports = (function() {
this.DAO.prototype._hasCustomSetters = Object.keys(this.DAO.prototype._customSetters).length
Object.defineProperties(this.DAO.prototype, attributeManipulation)
this.DAO.prototype.rawAttributes = this.rawAttributes;
this.DAO.prototype.attributes = Object.keys(this.DAO.prototype.rawAttributes)
this.DAO.prototype._isAttribute = Utils._.memoize(function (key) {
return self.DAO.prototype.attributes.indexOf(key) !== -1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!