Skip to content

Commit

Permalink
Editor: Script syntax error robustness.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Mar 15, 2015
1 parent 94092d1 commit 2f36e6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions editor/js/Script.js
Expand Up @@ -89,14 +89,12 @@ var Script = function ( editor ) {

}

for ( var i = 0; i < widgets.length; i ++ ) {
while ( widgets.length > 0 ) {

codemirror.removeLineWidget( widgets[ i ] );
codemirror.removeLineWidget( widgets.shift() );

}

widgets.length = 0;

//

try {
Expand Down

0 comments on commit 2f36e6a

Please sign in to comment.