Skip to content

Commit

Permalink
PATCH@ #6
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasJang committed Apr 26, 2017
1 parent 14706a6 commit 742fafa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions dist/ax5menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

UI.addClass({
className: "menu",
version: "1.4.25"
version: "${VERSION}"
}, function () {
/**
* @class ax5.ui.menu
Expand Down Expand Up @@ -365,13 +365,13 @@
}
});
if (target) {

if (typeof opt === "undefined") opt = {};
item = function (path) {
if (!path) return false;
var item = void 0;

try {
item = Function("", "return this[" + path.substring(5).replace(/\./g, '].' + cfg.columnKeys.items + '[') + "];").call(opt.items);
item = Function("", "return this[" + path.substring(5).replace(/\./g, '].' + cfg.columnKeys.items + '[') + "];").call(opt.items || cfg.items);
} catch (e) {
console.log(ax5.info.getError("ax5menu", "501", "menuItemClick"));
}
Expand Down Expand Up @@ -650,7 +650,7 @@
opt = getOption["object"].call(this, { left: offset.left, top: offset.top + height - scrollTop }, opt);

popup.call(self, opt, cfg.items[index][cfg.columnKeys.items], 0, 'root.' + target.getAttribute("data-menu-item-index")); // 0 is seq of queue
appEventAttach.call(self, true); // 이벤트 연결
appEventAttach.call(self, true, {}); // 이벤트 연결
}

target = null;
Expand Down
Loading

0 comments on commit 742fafa

Please sign in to comment.