From 403e49d102dc9da2f567ea3d68286438b6d81a5e Mon Sep 17 00:00:00 2001 From: Moorthy Venkatraman Date: Wed, 10 Dec 2014 13:17:23 -0500 Subject: [PATCH] Combine to enumerate its own properties Updated the iteration inside combine to ensure inherited properties are avoided. This happens in IE environments due to the use of Array polyfill, which is inevitable these days. --- src/bacon.model.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))