MithrilJS / mithril-codemods

jscodeshift-powered mithril@0.2.x to mithril@1.x transformations
MIT License
19 stars 4 forks source link

Controller.onunload should become onremove #23

Closed tivac closed 7 years ago

tivac commented 7 years ago

Original Source

{
    controller : function() {
        // ...
        this.onunload = clear;
    }
}

Tool Output

{
    controller : function() {
        // ...
        this.onunload = clear;
    }
}

Expected Output

{
    controller : function() {
        // ...
    },
    onremove : clear
}
tivac commented 7 years ago

Fixed by 0eb1d221fcde1d4f223ba6f3b1e4a34016259e4d