Skip to content

Commit

Permalink
fix(expose_getters_from): should iterate all keys in prototype chain
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Nov 16, 2014
1 parent d386178 commit 5a89ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/expose_getters_from.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use strict";

module.exports = function (component, prototype, instance) {
Object.keys(prototype).forEach(function (key) {
for (var key in prototype) {
if (key.match(/^get/) && !key.match(/Map$/)) {
component[key] = instance[key].bind(instance);
}
});
}
};

0 comments on commit 5a89ed1

Please sign in to comment.