Permalink
Browse files

Lists now accept a string as template option

  • Loading branch information...
1 parent 4aee904 commit cbed8fb71bfa5d6048146baa1ed1dd32e2c0e6e5 @tbassetto tbassetto committed Nov 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/ui/list.js
View
@@ -17,6 +17,8 @@ define(["joshlib!uielement","joshlib!ui/listitem","joshlib!ui/item","joshlib!uti
initialize:function(options) {
if (options.templateEl) {
this.template = this.compileTemplate($(options.templateEl).text());
+ } else if (options.template) {
+ this.template = this.compileTemplate(options.template);
} else {
this.template = this.compileTemplate('<ul><%= children %></ul>');
}

0 comments on commit cbed8fb

Please sign in to comment.