diff --git a/src/bacon.model.coffee b/src/bacon.model.coffee index 45b1350..59d192b 100644 --- a/src/bacon.model.coffee +++ b/src/bacon.model.coffee @@ -81,7 +81,7 @@ init = (Bacon) -> else initValue = if template instanceof Array then [] else {} model = Model(initValue) - for key, value of template + for own key, value of template lens = Lens.objectLens(key) lensedModel = model.lens(lens) lensedModel.bind(Model.combine(value))