Parcourir la source

bugfix

redo with larger than actual id is now possible
Daniel il y a 9 ans
Parent
commit
cb71189cb7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      editor/js/History.js

+ 1 - 1
editor/js/History.js

@@ -259,7 +259,7 @@ History.prototype = {
 		if ( cmd === undefined || id > cmd.id ) {
 		if ( cmd === undefined || id > cmd.id ) {
 
 
 			cmd = this.redo();
 			cmd = this.redo();
-			while ( id > cmd.id ) {
+			while ( cmd !== undefined && id > cmd.id ) {
 
 
 				cmd = this.redo();
 				cmd = this.redo();