Skip to content

Commit

Permalink
Merge pull request #90 from Ninjaclasher/delete-editor-typo
Browse files Browse the repository at this point in the history
Fix `el.id` not being defined in DjangoPagedown.destroyEditor
  • Loading branch information
timmyomahony authored Oct 2, 2020
2 parents 2c862da + 7d6f41e commit d42ae63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagedown/static/pagedown_init.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ DjangoPagedown = (function() {

var destroyEditor = function(element) {
if (editors.hasOwnProperty(element.id)) {
delete editors[el.id];
delete editors[element.id];
return true;
}
return false;
Expand Down

0 comments on commit d42ae63

Please sign in to comment.