We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e7b09 commit fd028a7Copy full SHA for fd028a7
2 files changed
app/gist/route.js
@@ -30,12 +30,12 @@ export default Ember.Route.extend({
30
},
31
32
confirmUnload(event) {
33
- if (this.get('controller.unsaved')) {
+ if (this.get('controller.unsaved') === true) {
34
if (!window.confirm(CONFIRM_MSG)) {
35
event.preventDefault();
36
}
37
+ return CONFIRM_MSG; // for Chrome
38
- return CONFIRM_MSG; // for Chrome
39
40
41
actions: {
app/routes/gist-base-route.js
@@ -22,7 +22,7 @@ export default Ember.Route.extend({
22
23
willTransition(transition) {
24
const gistController = this.controllerFor('gist');
25
- if (gistController.get('unsaved')) {
+ if (gistController.get('unsaved') === true) {
26
27
transition.abort();
28
0 commit comments