fix(edit) value size < then patch size -> save value

This commit is contained in:
coderaiser 2013-11-25 08:42:04 +00:00
parent f1d9b8dfb5
commit de3e42baf7

View file

@ -150,11 +150,13 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
var isDiff = config.diff;
Util.ifExec(!isDiff, function(patch) {
var query;
var query,
isString = Util.isString(patch),
length = isString && patch.length < lValue.length;
Value = lValue;
if (Util.isString(patch) && patch) {
if (isString && length) {
lValue = patch;
query = '?patch';
}