Skip to content

Commit 44b7ddb

Browse files
committed
bah3
1 parent 35882be commit 44b7ddb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ var curCode = '';
7575
var deltaObj = undefined;
7676

7777
function initDeltaObj() {
78+
// make sure the editor already exists
79+
// (editor doesn't exist when you're, say, doing an iframe embed)
80+
if (!pyInputAceEditor && !pyInputCodeMirror) {
81+
return;
82+
}
83+
7884
// v is the version number
7985
// 1 (version 1 was released on 2014-11-05)
8086
deltaObj = {start: pyInputGetValue(), deltas: [], v: 1};

0 commit comments

Comments
 (0)