Skip to content

Commit

Permalink
Fix creating new Firepad documents
Browse files Browse the repository at this point in the history
  • Loading branch information
nawroth committed Jan 3, 2016
1 parent 0cd5aab commit 72c8891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/docgist.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ function DocGist($) {
var bs62 = baseX(base62);
var tmpId = bs62.encode(buffer);
historyTransition(myId, 'fp-' + tmpId);
options['editor'] = 'firepad';
setupFunc(options, true);
}

Expand Down Expand Up @@ -621,7 +622,7 @@ function DocGist($) {
var MAGIC_PERFORMANCE_FACTOR = 2;
cm.on('changes', renderOnChanges);

function renderOnChanges () {
function renderOnChanges() {
if (typeof timeout === 'undefined') {
var wait = timeDiff * MAGIC_PERFORMANCE_FACTOR;
timeout = setTimeout(function () {
Expand Down

0 comments on commit 72c8891

Please sign in to comment.