Skip to content

Commit

Permalink
* Fixes wrong if in save.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Daniels committed May 17, 2012
1 parent c3aaf91 commit 80939a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins-client/ext.save/save.js
Expand Up @@ -84,9 +84,9 @@ module.exports = ext.register("ext/save/save", {
if (!at.undo_ptr)
at.undo_ptr = at.$undostack[0];
var node = e.page.$doc.getNode();
if (node && at.undo_ptr && at.$undostack[at.$undostack.length-1] !== at.undo_ptr
if (node && (at.undo_ptr && at.$undostack[at.$undostack.length-1] !== at.undo_ptr
|| !at.undo_ptr && node.getAttribute("changed") == 1
&& e.page.$doc.getValue()) {
&& e.page.$doc.getValue())) {

ext.initExtension(_self);

Expand Down

0 comments on commit 80939a0

Please sign in to comment.