Skip to content

Commit

Permalink
修复未实时预览不能全屏预览
Browse files Browse the repository at this point in the history
  • Loading branch information
akof1314 committed Jul 18, 2015
1 parent af08536 commit 9e8ff26
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions editormd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1965,14 +1965,15 @@

save : function() {

if (timer === null)
var _this = this;
var state = this.state;
var settings = this.settings;

if (timer === null && !(!settings.watch && state.preview))
{
return this;
}

var _this = this;
var state = this.state;
var settings = this.settings;
var cm = this.cm;
var cmValue = cm.getValue();
var previewContainer = this.previewContainer;
Expand Down

0 comments on commit 9e8ff26

Please sign in to comment.