Skip to content

Commit

Permalink
Changes user methods to be writeable property instances (fixes #296)
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Sep 21, 2013
1 parent 9dd6580 commit 36dd859
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,9 @@ function Instance(Model, opts) {

for (k in opts.methods) {
Object.defineProperty(instance, k, {
value: opts.methods[k].bind(instance),
enumerable: false
value : opts.methods[k].bind(instance),
enumerable : false,
writeable : true
});
}

Expand Down

0 comments on commit 36dd859

Please sign in to comment.