More refactorings.

This commit is contained in:
Lars Jung 2014-06-08 22:26:03 +02:00
parent 9c414c92e2
commit 67bdb1515d
4 changed files with 33 additions and 37 deletions

View file

@ -108,7 +108,7 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/event', 'co
$text = $(templateMarkdown).text(textContent);
resource.loadMarkdown(function (md) {
resource.ensureMarkdown(function (md) {
if (md) {
$text.html(md.toHTML(textContent));
@ -118,7 +118,7 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/event', 'co
$text = $(templateText).text(textContent);
resource.loadSyntaxhighlighter(function (sh) {
resource.ensureSH(function (sh) {
if (sh) {
var $table = $('<table/>');