Skip to content

Instantly share code, notes, and snippets.

@briandk
Created Nov 30, 2014
Embed
What would you like to do?
transdown debugging
var transdownNamespace = {
updatePreviewAfterEachKeypress : function () {
$('#text-to-transdownify').keyup(this.renderTranscriptPreview);
},
transdownify : function (text) {
return (text);
},
renderTranscriptPreview : function () {
var textToTransdownify = $('#text-to-transdownify').val(),
outputText = this.transdownify(textToTransdownify);
$('#live-preview').html(outputText);
console.log("render");
}
};
transdown = Object.create(transdownNamespace);
transdown.updatePreviewAfterEachKeypress();
transdown.renderTranscriptPreview();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment