diff --git a/bower.json b/bower.json index 5feefa8..b6f4894 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-resources", - "version": "0.8.5", + "version": "0.8.6", "description": "A standard set of behaviors, converters and other resources for use with the Aurelia templating library.", "keywords": [ "aurelia", diff --git a/dist/amd/compose.js b/dist/amd/compose.js index 2181104..62fbfb5 100644 --- a/dist/amd/compose.js +++ b/dist/amd/compose.js @@ -35,11 +35,7 @@ define(["exports", "aurelia-dependency-injection", "aurelia-templating"], functi bind: { value: function bind(executionContext) { this.executionContext = executionContext; - processInstruction(this, { - view: this.view, - viewModel: this.viewModel, - model: this.model - }); + processInstruction(this, { view: this.view, viewModel: this.viewModel, model: this.model }); }, writable: true, configurable: true @@ -55,14 +51,14 @@ define(["exports", "aurelia-dependency-injection", "aurelia-templating"], functi }, viewChanged: { value: function viewChanged(newValue, oldValue) { - processInstruction(this, { view: newValue }); + processInstruction(this, { view: newValue, viewModel: this.viewModel, model: this.model }); }, writable: true, configurable: true }, viewModelChanged: { value: function viewModelChanged(newValue, oldValue) { - processInstruction(this, { viewModel: newValue }); + processInstruction(this, { viewModel: newValue, view: this.view, model: this.model }); }, writable: true, configurable: true diff --git a/dist/commonjs/compose.js b/dist/commonjs/compose.js index 9d42c82..fe415f3 100644 --- a/dist/commonjs/compose.js +++ b/dist/commonjs/compose.js @@ -36,11 +36,7 @@ var Compose = exports.Compose = (function () { bind: { value: function bind(executionContext) { this.executionContext = executionContext; - processInstruction(this, { - view: this.view, - viewModel: this.viewModel, - model: this.model - }); + processInstruction(this, { view: this.view, viewModel: this.viewModel, model: this.model }); }, writable: true, configurable: true @@ -56,14 +52,14 @@ var Compose = exports.Compose = (function () { }, viewChanged: { value: function viewChanged(newValue, oldValue) { - processInstruction(this, { view: newValue }); + processInstruction(this, { view: newValue, viewModel: this.viewModel, model: this.model }); }, writable: true, configurable: true }, viewModelChanged: { value: function viewModelChanged(newValue, oldValue) { - processInstruction(this, { viewModel: newValue }); + processInstruction(this, { viewModel: newValue, view: this.view, model: this.model }); }, writable: true, configurable: true diff --git a/dist/es6/compose.js b/dist/es6/compose.js index 53bf329..392eaee 100644 --- a/dist/es6/compose.js +++ b/dist/es6/compose.js @@ -15,17 +15,13 @@ export class Compose { constructor(container, compositionEngine, viewSlot, viewResources){ this.container = container; this.compositionEngine = compositionEngine; - this.viewSlot = viewSlot; + this.viewSlot = viewSlot; this.viewResources = viewResources; } bind(executionContext){ this.executionContext = executionContext; - processInstruction(this, { - view:this.view, - viewModel:this.viewModel, - model:this.model - }); + processInstruction(this, { view:this.view, viewModel:this.viewModel, model:this.model }); } modelChanged(newValue, oldValue){ @@ -35,11 +31,11 @@ export class Compose { } viewChanged(newValue, oldValue){ - processInstruction(this, { view:newValue }); + processInstruction(this, { view:newValue, viewModel:this.viewModel, model:this.model }); } viewModelChanged(newValue, oldValue){ - processInstruction(this, { viewModel:newValue }); + processInstruction(this, { viewModel:newValue, view:this.view, model:this.model }); } } @@ -53,4 +49,4 @@ function processInstruction(composer, instruction){ })).then(next => { composer.current = next; }); -} \ No newline at end of file +} diff --git a/dist/system/compose.js b/dist/system/compose.js index b47f539..032197f 100644 --- a/dist/system/compose.js +++ b/dist/system/compose.js @@ -54,11 +54,7 @@ System.register(["aurelia-dependency-injection", "aurelia-templating"], function bind: { value: function bind(executionContext) { this.executionContext = executionContext; - processInstruction(this, { - view: this.view, - viewModel: this.viewModel, - model: this.model - }); + processInstruction(this, { view: this.view, viewModel: this.viewModel, model: this.model }); }, writable: true, configurable: true @@ -74,14 +70,14 @@ System.register(["aurelia-dependency-injection", "aurelia-templating"], function }, viewChanged: { value: function viewChanged(newValue, oldValue) { - processInstruction(this, { view: newValue }); + processInstruction(this, { view: newValue, viewModel: this.viewModel, model: this.model }); }, writable: true, configurable: true }, viewModelChanged: { value: function viewModelChanged(newValue, oldValue) { - processInstruction(this, { viewModel: newValue }); + processInstruction(this, { viewModel: newValue, view: this.view, model: this.model }); }, writable: true, configurable: true diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 470c8ca..d3cac33 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,11 @@ +### 0.8.6 (2015-02-06) + + +#### Bug Fixes + +* **compose:** all properties not responding to changes ([8c7cf24c](http://github.com/aurelia/templating-resources/commit/8c7cf24c94d8b35f8e6c2847ed427f840adff225), closes [#10](http://github.com/aurelia/templating-resources/issues/10)) + + ### 0.8.5 (2015-02-03) diff --git a/package.json b/package.json index 94fb20c..4f9be57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-resources", - "version": "0.8.5", + "version": "0.8.6", "description": "A standard set of behaviors, converters and other resources for use with the Aurelia templating library.", "keywords": [ "aurelia",