empty text nodes after spans
[fnpeditor.git] / src / editor / modules / rng / rng.js
index fc8cd61..63bc2c2 100644 (file)
@@ -231,9 +231,9 @@ return function(sandbox) {
         var txt = gettext('Do you really want to exit?');
         if(documentIsDirty) {
             txt += ' ' + gettext('Document contains unsaved changes!');
+            event.returnValue = txt; // FF
+            return txt; // Chrome
         }
-        event.returnValue = txt; // FF
-        return txt; // Chrome
     });
     
     /* api */