fix(edit) could not save when diff disabled in options

This commit is contained in:
coderaiser 2014-11-21 04:17:04 -05:00
parent b9d1249ec8
commit 5f4b0d9e64

View file

@ -354,7 +354,7 @@ var CloudCmd, Util, DOM, CloudFunc, io, ace, DiffProto, diff_match_patch, Zip, M
exec.if(!isDiff, function(patch) {
var query = '',
MAX_SIZE = CloudFunc.MAX_FILE_SIZE,
patchLength = patch.length,
patchLength = patch && patch.length || 0,
length = Value.length,
isLessMaxLength = length < MAX_SIZE,
isLessLength = isLessMaxLength && patchLength < length,