aboutsummaryrefslogtreecommitdiff
path: root/src/utility.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-22 17:40:46 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-22 17:40:46 -0800
commit17c699ce10a4268370c45f829ccfcfdb9d0f486e (patch)
tree354e3bcaceadb3152f3e8ba3941c92be8596541a /src/utility.js
parent1f6a18773bb6ea1c103589894306dde30e2463c9 (diff)
fix bugs in (unused) setSub
Diffstat (limited to 'src/utility.js')
-rw-r--r--src/utility.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utility.js b/src/utility.js
index 91c4abe3..ba97a399 100644
--- a/src/utility.js
+++ b/src/utility.js
@@ -248,10 +248,10 @@ function set() {
}
function setSub(x, y) {
- var ret = set(values(x));
+ var ret = set(keys(x));
for (yy in y) {
if (yy in ret) {
- delete ret.yy;
+ delete ret[yy];
}
}
return ret;