MCPcopy
hub / github.com/winjs/winjs / isCommandInMenu

Function isCommandInMenu

src/js/WinJS/Controls/Menu.js:75–79  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

73 };
74
75 function isCommandInMenu(object) {
76 // Verifies that we have a menuCommand element and that it is in a Menu.
77 var element = object.element || object;
78 return _ElementUtilities._matchesSelector(element, "." + _Constants.menuClass + " " + "." + _Constants.menuCommandClass);
79 }
80
81 var Menu = _Base.Class.derive(Flyout.Flyout, function Menu_ctor(element, options) {
82 /// <signature helpKeyword="WinJS.UI.Menu.Menu">

Callers 1

Menu.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected