From 5f70f0dc2fe5551a9809492f1602b7ead9d902a1 Mon Sep 17 00:00:00 2001 From: weepy Date: Thu, 16 Jul 2015 21:58:07 +0100 Subject: [PATCH] send attrs, options to _initChildren This simply sends the attrs to _initChildren, so that derived models can override _initChildren and reason about the passed in attrs. See #181. --- ampersand-state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ampersand-state.js b/ampersand-state.js index a1cae9d..dfbc245 100644 --- a/ampersand-state.js +++ b/ampersand-state.js @@ -37,7 +37,7 @@ function Base(attrs, options) { this.collection = options.collection; this._keyTree = new KeyTree(); this._initCollections(); - this._initChildren(); + this._initChildren(attrs, options); this._cache = {}; this._previousAttributes = {}; if (attrs) this.set(attrs, assign({silent: true, initial: true}, options));