From c427a8b17d958db3010fb0d766dfa6d1af927fe6 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Sun, 15 Nov 2015 14:23:49 -0500 Subject: [PATCH] chore(all): prepare release 0.17.5 --- bower.json | 2 +- dist/amd/aurelia-templating.d.ts | 4 ++-- dist/amd/aurelia-templating.js | 4 ++-- dist/aurelia-templating.d.ts | 4 ++-- dist/aurelia-templating.js | 6 +++--- dist/commonjs/aurelia-templating.d.ts | 4 ++-- dist/commonjs/aurelia-templating.js | 4 ++-- dist/es6/aurelia-templating.d.ts | 4 ++-- dist/es6/aurelia-templating.js | 6 +++--- dist/system/aurelia-templating.d.ts | 4 ++-- dist/system/aurelia-templating.js | 4 ++-- doc/CHANGELOG.md | 8 ++++++++ doc/api.json | 2 +- package.json | 2 +- 14 files changed, 33 insertions(+), 25 deletions(-) diff --git a/bower.json b/bower.json index 17e42b90..a5b6ab9f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating", - "version": "0.17.4", + "version": "0.17.5", "description": "An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-templating.d.ts b/dist/amd/aurelia-templating.d.ts index d0d89db5..5576cf3a 100644 --- a/dist/amd/aurelia-templating.d.ts +++ b/dist/amd/aurelia-templating.d.ts @@ -1073,9 +1073,9 @@ declare module 'aurelia-templating' { /** * Invoked when the view which contains this controller is created. - * @param view The view inside which this controller resides. + * @param owningView The view inside which this controller resides. */ - created(view: any): void; + created(owningView: any): void; /** * Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation. diff --git a/dist/amd/aurelia-templating.js b/dist/amd/aurelia-templating.js index cc6a74f4..5f295686 100644 --- a/dist/amd/aurelia-templating.js +++ b/dist/amd/aurelia-templating.js @@ -2687,9 +2687,9 @@ define(['exports', 'core-js', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pa } } - Controller.prototype.created = function created(view) { + Controller.prototype.created = function created(owningView) { if (this.behavior.handlesCreated) { - this.viewModel.created(view); + this.viewModel.created(owningView, this.view); } }; diff --git a/dist/aurelia-templating.d.ts b/dist/aurelia-templating.d.ts index d0d89db5..5576cf3a 100644 --- a/dist/aurelia-templating.d.ts +++ b/dist/aurelia-templating.d.ts @@ -1073,9 +1073,9 @@ declare module 'aurelia-templating' { /** * Invoked when the view which contains this controller is created. - * @param view The view inside which this controller resides. + * @param owningView The view inside which this controller resides. */ - created(view: any): void; + created(owningView: any): void; /** * Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation. diff --git a/dist/aurelia-templating.js b/dist/aurelia-templating.js index 7cda8b8a..aab31948 100644 --- a/dist/aurelia-templating.js +++ b/dist/aurelia-templating.js @@ -3241,11 +3241,11 @@ export class Controller { /** * Invoked when the view which contains this controller is created. - * @param view The view inside which this controller resides. + * @param owningView The view inside which this controller resides. */ - created(view): void { + created(owningView): void { if (this.behavior.handlesCreated) { - this.viewModel.created(view); + this.viewModel.created(owningView, this.view); } } diff --git a/dist/commonjs/aurelia-templating.d.ts b/dist/commonjs/aurelia-templating.d.ts index d0d89db5..5576cf3a 100644 --- a/dist/commonjs/aurelia-templating.d.ts +++ b/dist/commonjs/aurelia-templating.d.ts @@ -1073,9 +1073,9 @@ declare module 'aurelia-templating' { /** * Invoked when the view which contains this controller is created. - * @param view The view inside which this controller resides. + * @param owningView The view inside which this controller resides. */ - created(view: any): void; + created(owningView: any): void; /** * Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation. diff --git a/dist/commonjs/aurelia-templating.js b/dist/commonjs/aurelia-templating.js index 22676641..efbf2a67 100644 --- a/dist/commonjs/aurelia-templating.js +++ b/dist/commonjs/aurelia-templating.js @@ -2708,9 +2708,9 @@ var Controller = (function () { } } - Controller.prototype.created = function created(view) { + Controller.prototype.created = function created(owningView) { if (this.behavior.handlesCreated) { - this.viewModel.created(view); + this.viewModel.created(owningView, this.view); } }; diff --git a/dist/es6/aurelia-templating.d.ts b/dist/es6/aurelia-templating.d.ts index d0d89db5..5576cf3a 100644 --- a/dist/es6/aurelia-templating.d.ts +++ b/dist/es6/aurelia-templating.d.ts @@ -1073,9 +1073,9 @@ declare module 'aurelia-templating' { /** * Invoked when the view which contains this controller is created. - * @param view The view inside which this controller resides. + * @param owningView The view inside which this controller resides. */ - created(view: any): void; + created(owningView: any): void; /** * Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation. diff --git a/dist/es6/aurelia-templating.js b/dist/es6/aurelia-templating.js index 7cda8b8a..aab31948 100644 --- a/dist/es6/aurelia-templating.js +++ b/dist/es6/aurelia-templating.js @@ -3241,11 +3241,11 @@ export class Controller { /** * Invoked when the view which contains this controller is created. - * @param view The view inside which this controller resides. + * @param owningView The view inside which this controller resides. */ - created(view): void { + created(owningView): void { if (this.behavior.handlesCreated) { - this.viewModel.created(view); + this.viewModel.created(owningView, this.view); } } diff --git a/dist/system/aurelia-templating.d.ts b/dist/system/aurelia-templating.d.ts index d0d89db5..5576cf3a 100644 --- a/dist/system/aurelia-templating.d.ts +++ b/dist/system/aurelia-templating.d.ts @@ -1073,9 +1073,9 @@ declare module 'aurelia-templating' { /** * Invoked when the view which contains this controller is created. - * @param view The view inside which this controller resides. + * @param owningView The view inside which this controller resides. */ - created(view: any): void; + created(owningView: any): void; /** * Used to automate the proper binding of this controller and its view. Used by the composition engine for dynamic component creation. diff --git a/dist/system/aurelia-templating.js b/dist/system/aurelia-templating.js index 5ebc76f2..72f3e5c4 100644 --- a/dist/system/aurelia-templating.js +++ b/dist/system/aurelia-templating.js @@ -2994,9 +2994,9 @@ System.register(['core-js', 'aurelia-logging', 'aurelia-metadata', 'aurelia-path } } - Controller.prototype.created = function created(view) { + Controller.prototype.created = function created(owningView) { if (this.behavior.handlesCreated) { - this.viewModel.created(view); + this.viewModel.created(owningView, this.view); } }; diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index a1fc4237..caa242ac 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,11 @@ +### 0.17.5 (2015-11-15) + + +#### Features + +* **controller:** pass not only the owningView to the view-model, but the component's view as well ([5ee79b74](http://github.com/aurelia/templating/commit/5ee79b74a3c7c30ebd95ad34a596f7fed5a0d807)) + + ### 0.17.4 (2015-11-12) diff --git a/doc/api.json b/doc/api.json index 660c4444..a6792edb 100644 --- a/doc/api.json +++ b/doc/api.json @@ -2863,7 +2863,7 @@ "parameters": [ { "id": 512, - "name": "view", + "name": "owningView", "kind": 32768, "kindString": "Parameter", "flags": {}, diff --git a/package.json b/package.json index 5ef8e06d..804bfda4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating", - "version": "0.17.4", + "version": "0.17.5", "description": "An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.", "keywords": [ "aurelia",