Buslowicz / twc

TypeScript based, boilerplate-less, Polymer toolbox friendly Polymer Modules
32 stars 1 forks source link

twc fail when there are no methods #77

Closed tpluscode closed 7 years ago

tpluscode commented 7 years ago

Version 0.2.0-beta.1

An empty element cannot be processed. twc fails with

\npm\node_modules\twc\src\parsers\DTSParser.js:120
        definition.class.methods.forEach(function (method) {
                                ^

TypeError: Cannot read property 'forEach' of undefined
Buslowicz commented 7 years ago

This issue will be fixed once #73 is finished (I am currently working on it as it will make it easier to finish #39 and #48).