Skip to content

Commit

Permalink
asWidgetizeable handles .getWidget('nested.name')
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronj1335 committed Mar 14, 2013
1 parent 8ecb537 commit 8bad88c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mixins/aswidgetizable.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ define([
this.set('widgets', widgetsDict(widgetize(this.$el)));
return ret;
});

this.getWidget = function(name) {
return this.get('widgets')[name];
return this.get('widgets.' + name);
};
};
});

0 comments on commit 8bad88c

Please sign in to comment.