The ember-onbeforeunload mixin will ONLY check for the dirty page attribute via isPageDirty when shouldCheckIsPageDirty returns false. This seems completely counter-intuitive. Why would we not check for a dirty page when shouldCheckIsPageDirty returns true?
The logic that does this is here. This constantly confuses me and my team because it seems completely backwards.
I am happy to open a PR fixing this @blimmer, would that be okay? Though, this could break any applications currently using this addon if their addon manager specification is general enough to catch the version.
The
ember-onbeforeunload
mixin will ONLY check for the dirty page attribute viaisPageDirty
whenshouldCheckIsPageDirty
returns false. This seems completely counter-intuitive. Why would we not check for a dirty page whenshouldCheckIsPageDirty
returns true?The logic that does this is here. This constantly confuses me and my team because it seems completely backwards.
I am happy to open a PR fixing this @blimmer, would that be okay? Though, this could break any applications currently using this addon if their addon manager specification is general enough to catch the version.