Permalink
Browse files

Return this from addEach

  • Loading branch information...
1 parent a3a8aeb commit 73a2d657288143cbd7fc561c9a8866f5b023d8ae @kriskowal committed Nov 23, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 generic-collection.js
  2. +1 −0 generic-map.js
  3. +1 −0 shim-object.js
View
@@ -21,6 +21,7 @@ GenericCollection.prototype.addEach = function (values) {
}, this);
}
}
+ return this;
};
GenericCollection.prototype.deleteEach = function (values) {
View
@@ -35,6 +35,7 @@ GenericMap.prototype.addEach = function (values) {
}, this);
}
}
+ return this;
}
GenericMap.prototype.get = function (key, defaultValue) {
View
@@ -236,6 +236,7 @@ Object.addEach = function (target, source) {
target[key] = source[key];
});
}
+ return target;
};
/**

0 comments on commit 73a2d65

Please sign in to comment.