Skip to content

Commit

Permalink
Merge pull request #12 from lenbo-ma/master
Browse files Browse the repository at this point in the history
修正一些小错误
  • Loading branch information
pandao committed Feb 19, 2015
2 parents 793528d + 24ee4f8 commit 335cc73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/editormd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,7 @@
*/

getHTML : function() {
if (!settings.saveHTMLToTextarea)
if (!this.settings.saveHTMLToTextarea)
{
alert("Error: settings.saveHTMLToTextarea == false");

Expand All @@ -2036,14 +2036,14 @@
*/

getPreviewedHTML : function() {
if (!settings.watch)
if (!this.settings.watch)
{
alert("Error: settings.watch == false");

return false;
}

return this.preivewContainer.html();
return this.previewContainer.html();
},

/**
Expand Down Expand Up @@ -2898,4 +2898,4 @@

return editormd;

}));
}));

0 comments on commit 335cc73

Please sign in to comment.