Skip to content

Commit

Permalink
Merge pull request codemirror#42 from adobe/nj/issue-454
Browse files Browse the repository at this point in the history
Make sure we remove the inline widget from our list of widgets before de...
  • Loading branch information
gruehle committed Mar 16, 2012
2 parents 5ba277e + bc3c56e commit ae2c672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -1586,8 +1586,9 @@ var CodeMirror = (function() {
break;
}
if (i < inlines.length) {
inlines[i].destroy();
var inline = inlines[i];
inlines.splice(i, 1);
inline.destroy();
gutterDirty = true;
if (!inUpdate)
updateDisplay(true);
Expand Down

0 comments on commit ae2c672

Please sign in to comment.