37 lines
940 B
JavaScript
Executable file
37 lines
940 B
JavaScript
Executable file
/*global define*/
|
|
define(
|
|
|
|
[
|
|
'./bindingHandler',
|
|
'./utils',
|
|
'jquery-ui/menu'
|
|
],
|
|
|
|
function (BindingHandler, utils) {
|
|
|
|
'use strict';
|
|
|
|
var Menu = function () {
|
|
/// <summary>Constructor.</summary>
|
|
|
|
BindingHandler.call(this, 'menu');
|
|
|
|
if (utils.uiVersion.major === 1 && utils.uiVersion.minor < 11) {
|
|
this.options = ['disabled', 'icons', 'menus', 'position', 'role'];
|
|
} else {
|
|
this.options = ['disabled', 'icons', 'items', 'menus', 'position',
|
|
'role'];
|
|
}
|
|
|
|
this.events = ['blur', 'create', 'focus', 'select'];
|
|
this.hasRefresh = true;
|
|
};
|
|
|
|
Menu.prototype = utils.createObject(BindingHandler.prototype);
|
|
Menu.prototype.constructor = Menu;
|
|
|
|
utils.register(Menu);
|
|
|
|
return Menu;
|
|
}
|
|
);
|