mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(edit) setMenu: multi var
This commit is contained in:
parent
54619917ae
commit
ecaf1cba88
1 changed files with 12 additions and 12 deletions
|
|
@ -181,18 +181,18 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format;
|
|||
event.preventDefault();
|
||||
|
||||
!Menu && DOM.loadRemote('menu', function(error) {
|
||||
var noFocus,
|
||||
options = {
|
||||
beforeShow: function(params) {
|
||||
params.x -= 18;
|
||||
params.y -= 27;
|
||||
},
|
||||
|
||||
afterClick: function() {
|
||||
!noFocus && editor.focus();
|
||||
}
|
||||
},
|
||||
menuData = {
|
||||
var noFocus;
|
||||
var options = {
|
||||
beforeShow: function(params) {
|
||||
params.x -= 18;
|
||||
params.y -= 27;
|
||||
},
|
||||
|
||||
afterClick: function() {
|
||||
!noFocus && editor.focus();
|
||||
}
|
||||
};
|
||||
var menuData = {
|
||||
'Save Ctrl+S' : function() {
|
||||
editor.save();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue