Skip to content

Commit

Permalink
fix(framework-configuration): parameter config in feature and plugin
Browse files Browse the repository at this point in the history
method is optional
  • Loading branch information
mirek kulha committed Aug 18, 2015
1 parent c91ea2b commit b07c481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework-configuration.js
Expand Up @@ -147,7 +147,7 @@ export class FrameworkConfiguration {
* @param {config} config The configuration for the specified plugin.
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
*/
feature(plugin:string, config:any):FrameworkConfiguration{
feature(plugin:string, config?:any):FrameworkConfiguration{
plugin = plugin.endsWith('.js') || plugin.endsWith('.ts') ? plugin.substring(0, plugin.length - 3) : plugin;
return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: plugin, config: config || {} });
}
Expand Down Expand Up @@ -201,7 +201,7 @@ export class FrameworkConfiguration {
* @param {config} config The configuration for the specified plugin.
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
*/
plugin(plugin:string, config:any):FrameworkConfiguration{
plugin(plugin:string, config?:any):FrameworkConfiguration{
assertProcessed(this);

if(typeof(plugin) === 'string'){
Expand Down

0 comments on commit b07c481

Please sign in to comment.