Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'latest' into 13.3.0
Browse files Browse the repository at this point in the history
# Conflicts:
#	aot/dist/agGridColumn.ngfactory.ts
#	aot/dist/agGridColumn.ngsummary.json
#	aot/dist/agGridNg2.ngfactory.ts
#	aot/dist/agGridNg2.ngsummary.json
#	aot/dist/aggrid.module.ngfactory.ts
#	aot/dist/aggrid.module.ngsummary.json
#	aot/dist/baseComponentFactory.ngsummary.json
#	aot/dist/interfaces.ngsummary.json
#	aot/dist/ng2ComponentFactory.ngsummary.json
#	aot/dist/ng2FrameworkComponentWrapper.ngsummary.json
#	aot/dist/ng2FrameworkFactory.ngsummary.json
#	aot/main.ngsummary.json
  • Loading branch information
makinggoodsoftware committed Oct 3, 2017
1 parent f84ba10 commit ed8ffdc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/aureliaFrameworkComponentWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,18 @@ var BaseGuiComponent = /** @class */ (function () {
return false;
};
BaseGuiComponent.prototype.getFrameworkComponentInstance = function () {
return this._frameworkComponentInstance;
var controllers = this._view.controllers;
//only one controller is allowed in editor template
if (controllers &&
controllers.length == 1 &&
controllers[0].viewModel) {
var editorVm = controllers[0].viewModel;
//this is a 'hack' because we don't have params.bind="" in the template
//must reset params or it will be nothing
editorVm.params = this._params;
return editorVm;
}
return null;
};
return BaseGuiComponent;
}());

0 comments on commit ed8ffdc

Please sign in to comment.