소스 검색

bugfix

redo with larger than actual id is now possible
Daniel 10 년 전
부모
커밋
cb71189cb7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 ) {
 
 			cmd = this.redo();
-			while ( id > cmd.id ) {
+			while ( cmd !== undefined && id > cmd.id ) {
 
 				cmd = this.redo();