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

Commit ec9c6fd8 by Jan Aagaard Meier

Merge branch 'master' into contraintWork

2 parents be7dfd48 7e82661d
Showing with 2 additions and 2 deletions
...@@ -184,8 +184,6 @@ module.exports = (function() { ...@@ -184,8 +184,6 @@ module.exports = (function() {
return self._hasReadOnlyAttributes && self._readOnlyAttributes.indexOf(key) !== -1 return self._hasReadOnlyAttributes && self._readOnlyAttributes.indexOf(key) !== -1
}) })
this.DAO.prototype.rawAttributes = this.rawAttributes;
if (this.options.instanceMethods) { if (this.options.instanceMethods) {
Utils._.each(this.options.instanceMethods, function(fct, name) { Utils._.each(this.options.instanceMethods, function(fct, name) {
self.DAO.prototype[name] = fct self.DAO.prototype[name] = fct
...@@ -291,6 +289,8 @@ module.exports = (function() { ...@@ -291,6 +289,8 @@ module.exports = (function() {
this.DAO.prototype._hasCustomSetters = Object.keys(this.DAO.prototype._customSetters).length this.DAO.prototype._hasCustomSetters = Object.keys(this.DAO.prototype._customSetters).length
Object.defineProperties(this.DAO.prototype, attributeManipulation) 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.attributes = Object.keys(this.DAO.prototype.rawAttributes)
this.DAO.prototype._isAttribute = Utils._.memoize(function (key) { this.DAO.prototype._isAttribute = Utils._.memoize(function (key) {
return self.DAO.prototype.attributes.indexOf(key) !== -1 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!