Skip to content

Fix viewModel function that returns a new type

Compare
Choose a tag to compare
@cherifGsoul cherifGsoul released this 29 Mar 15:24
· 305 commits to master since this release

This fixes the viewModel function that returns a new type like the following:

Component.extend({
   tag: "foo-bar",
   viewModel: function(attrs) {
        return CanMap.extend({
             foo: "bar"
        });
   }
});

#332