mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(menu) v0.6.4
This commit is contained in:
parent
37abf1e262
commit
a4daff756f
3 changed files with 6 additions and 6 deletions
|
|
@ -40,7 +40,7 @@ var MenuIO, Util;
|
|||
}
|
||||
|
||||
function init() {
|
||||
var name, isObj = Util.isObject(menuData);
|
||||
var name, isObj = Util.type.object(menuData);
|
||||
|
||||
if (!isObj) {
|
||||
name = menuData;
|
||||
|
|
@ -74,7 +74,7 @@ var MenuIO, Util;
|
|||
pathName = path + name,
|
||||
|
||||
data = menuData[name],
|
||||
isObj = Util.isObject(data);
|
||||
isObj = Util.type.object(data);
|
||||
|
||||
if (!isObj) {
|
||||
MenuFuncs[pathName] = data;
|
||||
|
|
@ -189,8 +189,8 @@ var MenuIO, Util;
|
|||
}
|
||||
|
||||
function setMenuPosition(x, y) {
|
||||
var isNumberX = Util.isNumber(x),
|
||||
isNumberY = Util.isNumber(y),
|
||||
var isNumberX = Util.type.number(x),
|
||||
isNumberY = Util.type.number(y),
|
||||
heightMenu = getMenuHeight(),
|
||||
heightInner = window.innerHeight;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "menu",
|
||||
"version": "0.6.3",
|
||||
"version": "0.6.4",
|
||||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
||||
"description": "Simple css-based multillevel context menu",
|
||||
"homepage": "http://coderaiser.github.io/menu",
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
"test": "gulp default"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp": "3.6.x",
|
||||
"gulp": "~3.8.8",
|
||||
"gulp-rename": "~1.2.0",
|
||||
"gulp-minify-css": "~0.3.1",
|
||||
"gulp-uglify": "~0.2.1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue