Skip to content

Commit

Permalink
fix inconsistencies in return value of createComponents
Browse files Browse the repository at this point in the history
createComponent in enyo.UIComponent should return an array of created
components as it does in enyo.Component
  • Loading branch information
rizqme committed May 20, 2012
1 parent 76aa00e commit 7869131
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/kernel/UiComponent.js
Expand Up @@ -48,8 +48,9 @@ enyo.kind({
// We could call _discoverControlParent_ in _addComponent_, but it would
// cause a lot of useless checking.
createComponents: function() {
this.inherited(arguments);
var results = this.inherited(arguments);
this.discoverControlParent();
return results;
},
discoverControlParent: function() {
this.controlParent = this.$[this.controlParentName] || this.controlParent;
Expand Down

0 comments on commit 7869131

Please sign in to comment.