mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(edit) onSave -> getSave
This commit is contained in:
parent
ffca56f7cd
commit
7286d21197
1 changed files with 2 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
isAllowed = DOM.Storage.isAllowed(),
|
||||
isString = Util.isString(patch),
|
||||
lessLength = patch.length < lValue.length,
|
||||
onSave = function(hash) {
|
||||
getSave = function(hash) {
|
||||
return function(data) {
|
||||
onSave(data, hash);
|
||||
};
|
||||
|
|
@ -175,7 +175,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
|
||||
|
||||
Util.ifExec(!isAllowed, function(loadHash) {
|
||||
DOM.RESTful.save(lPath, lValue, onSave(loadHash), query);
|
||||
DOM.RESTful.save(lPath, lValue, getSave(loadHash), query);
|
||||
}, function(callback) {
|
||||
DOM.checkStorageHash(lPath, function(error, equal, loadHash) {
|
||||
if (!error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue