Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onunload not called for collection remove #200

Closed
jankaspar opened this issue Aug 15, 2014 · 1 comment
Closed

Onunload not called for collection remove #200

jankaspar opened this issue Aug 15, 2014 · 1 comment
Labels
Type: Bug For bugs and any other unexpected breakage

Comments

@jankaspar
Copy link

When updating collection onunload is not called.

Test:

function unloadable(element, isInit, context) {
   console.log("configured div");
   context.onunload = function() {
       // this is never reached
       console.log("unloaded the div");
   }
};

window.onload = function(){
    m.render( document.body, [ m("div", {config: unloadable}) ] );
    m.render( document.body, [ ]);
}
@lhorie lhorie added the bug label Aug 15, 2014
lhorie pushed a commit that referenced this issue Aug 16, 2014
@lhorie
Copy link
Member

lhorie commented Aug 16, 2014

This is fixed in origin/next and scheduled to be released in v0.1.21

@lhorie lhorie closed this as completed Aug 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug For bugs and any other unexpected breakage
Projects
None yet
Development

No branches or pull requests

2 participants