Skip to content

Commit

Permalink
Merge pull request #51 from ondras/master
Browse files Browse the repository at this point in the history
do not auto-update via firebase when in edit mode. fixes #57
  • Loading branch information
ondras committed Nov 4, 2014
2 parents 33e4a7d + 1bc753c commit e17e672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion my-mind.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ MM.Item.prototype.fromJSON = function(data) {

MM.Item.prototype.mergeWith = function(data) {
var dirty = 0;
if (this.getText() != data.text) { this.setText(data.text); }

if (this.getText() != data.text && !this._dom.text.contentEditable) { this.setText(data.text); }

if (this._side != data.side) {
this._side = data.side;
Expand Down
3 changes: 2 additions & 1 deletion src/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ MM.Item.prototype.fromJSON = function(data) {

MM.Item.prototype.mergeWith = function(data) {
var dirty = 0;
if (this.getText() != data.text) { this.setText(data.text); }

if (this.getText() != data.text && !this._dom.text.contentEditable) { this.setText(data.text); }

if (this._side != data.side) {
this._side = data.side;
Expand Down

0 comments on commit e17e672

Please sign in to comment.