Commit 7f33edf4e20870b7b514970eda78bcfeb2791a11
struct: fix destroy
Matt McKegg committed on 9/1/2016, 3:59:08 AMParent: 8843e86702678540c5c23a37b36cb7da1583c622
Files changed
struct.js | changed |
struct.js | ||
---|---|---|
@@ -14,9 +14,9 @@ | ||
14 | 14 | var broadcast = observable.set |
15 | 15 | var keys = Object.keys(properties) |
16 | 16 | var suspendBroadcast = false |
17 | 17 | |
18 | - var releases = keys.forEach(function (key) { | |
18 | + var releases = keys.map(function (key) { | |
19 | 19 | if (blackList.hasOwnProperty(key)) { |
20 | 20 | throw new Error("Cannot create a struct with a key named '" + key + "'.\n" + blackList[key]) |
21 | 21 | } |
22 | 22 |
Built with git-ssb-web