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

This commit is contained in:
coderaiser 2014-11-20 07:16:50 -05:00
parent 2c443a0145
commit cb707129f5

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,