From 266e5764fdb43ecc2049b7c192d3c460f33820e8 Mon Sep 17 00:00:00 2001 From: James S Date: Fri, 8 Nov 2013 14:59:15 -0800 Subject: [PATCH] Typo in property definition 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 --- lib/Instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Instance.js b/lib/Instance.js index 68f624b8..d2984f75 100755 --- a/lib/Instance.js +++ b/lib/Instance.js @@ -489,7 +489,7 @@ function Instance(Model, opts) { Object.defineProperty(instance, k, { value : opts.methods[k].bind(instance), enumerable : false, - writeable : true + writable : true }); }