fix(show) position -> pos

This commit is contained in:
coderaiser 2015-05-27 02:31:41 -04:00
parent e02ffbfd94
commit b199b2fb98

View file

@ -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;
}
}