sn-code-editor
Advanced tools
Comparing version 1.0.193 to 1.0.194
{ | ||
"name": "sn-code-editor", | ||
"version": "1.0.193", | ||
"version": "1.0.194", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/dist.js", |
@@ -20,3 +20,4 @@ document.addEventListener("DOMContentLoaded", function(event) { | ||
var componentManager; | ||
var workingNote, clientData, lastValue; | ||
var workingNote, clientData; | ||
var lastValue, lastUUID; | ||
var editor, modeInput, select; | ||
@@ -48,2 +49,9 @@ var defaultMode = "javascript"; | ||
function onReceivedNote(note) { | ||
if(note.uuid !== lastUUID) { | ||
// Note changed, reset last values | ||
lastValue = null; | ||
initialLoad = true; | ||
lastUUID = note.uuid; | ||
} | ||
workingNote = note; | ||
@@ -50,0 +58,0 @@ // Only update UI on non-metadata updates. |
Sorry, the diff of this file is too big to display
3919681
71644