diff --git a/src/helpers/expose_getters_from.js b/src/helpers/expose_getters_from.js index bcad9ac8..2d67b7a3 100644 --- a/src/helpers/expose_getters_from.js +++ b/src/helpers/expose_getters_from.js @@ -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); } - }); + } };