Skip to content

Commit

Permalink
Typo in property definition
Browse files Browse the repository at this point in the history
There is much dispute about the name of this attribute, but the EMCA6 spec says 'writable' not 'writeable'. Spent some time trying to figure out why we could not get spy's in our testing libs to run on instance methods... mystery solved!

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty
  • Loading branch information
interlock committed Nov 8, 2013
1 parent 39c2d3c commit 266e576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ function Instance(Model, opts) {
Object.defineProperty(instance, k, {
value : opts.methods[k].bind(instance),
enumerable : false,
writeable : true
writable : true
});
}

Expand Down

0 comments on commit 266e576

Please sign in to comment.