浏览代码

bugfix

redo with larger than actual id is now possible
Daniel 9 年之前
父节点
当前提交
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();