mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(Edit) change patch condition
This commit is contained in:
parent
da889b10bb
commit
e0a97708ca
1 changed files with 2 additions and 2 deletions
|
|
@ -157,11 +157,11 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
Util.ifExec(!isDiff, function(patch) {
|
||||
var query,
|
||||
isString = Util.isString(patch),
|
||||
length = patch.length < lValue.length;
|
||||
lessLength = patch.length < lValue.length;
|
||||
|
||||
Value = lValue;
|
||||
|
||||
if (isString && length) {
|
||||
if (isString && patch.length && lessLength) {
|
||||
lValue = patch;
|
||||
query = '?patch';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue