mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
fix(show) position -> pos
This commit is contained in:
parent
e02ffbfd94
commit
b199b2fb98
1 changed files with 4 additions and 4 deletions
|
|
@ -56,17 +56,17 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
|
|||
};
|
||||
|
||||
function show(x, y) {
|
||||
var position;
|
||||
var pos;
|
||||
|
||||
if (!x || !y) {
|
||||
if (position) {
|
||||
x = position.x;
|
||||
y = position.y;
|
||||
} else {
|
||||
position = getCurrentPosition();
|
||||
pos = getCurrentPosition();
|
||||
|
||||
x = position.x;
|
||||
y = position.y;
|
||||
x = pos.x;
|
||||
y = pos.y;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue