microsoft / TypeScriptSamples

Community Driven Samples for TypeScript
3.19k stars 1.78k forks source link

todoMVC doesn't work fine when "super(options)" is moved to the first line #130

Open gadget2k opened 7 years ago

gadget2k commented 7 years ago

Line# 205 constructor (options?) { super(options); //... is a list tag. this.tagName = "li";

Though it's requested by new ts version that super should be the first element, it doesn't make sense when js is compiled. It just does't work. Backbone seems to need super call later. How to avoid this?