Incorporates review suggestions.
This commit is contained in:
parent
c6b98d45cc
commit
2c028aee22
|
@ -427,11 +427,13 @@
|
||||||
this.node = node;
|
this.node = node;
|
||||||
},
|
},
|
||||||
|
|
||||||
Attributes: function() {
|
Attributes: function(def) {
|
||||||
return {onmouseup: MENU.Mouseup,
|
return HUB.Insert(
|
||||||
ondragstart: FALSE, onselectstart: FALSE, onselectend: FALSE,
|
{onmouseup: MENU.Mouseup,
|
||||||
ontouchstart: MENU.Touchstart, ontouchend: MENU.Touchend,
|
ondragstart: FALSE, onselectstart: FALSE, onselectend: FALSE,
|
||||||
className: "MathJax_MenuItem", menuItem: this};
|
ontouchstart: MENU.Touchstart, ontouchend: MENU.Touchend,
|
||||||
|
className: "MathJax_MenuItem", menuItem: this},
|
||||||
|
def);
|
||||||
},
|
},
|
||||||
Create: function (menu) {
|
Create: function (menu) {
|
||||||
if (!this.hidden) {
|
if (!this.hidden) {
|
||||||
|
@ -503,14 +505,15 @@
|
||||||
role: "menuitem", // Aria role.
|
role: "menuitem", // Aria role.
|
||||||
|
|
||||||
Attributes: function() {
|
Attributes: function() {
|
||||||
var def = this.SUPER(arguments).Attributes.apply(this,arguments);
|
var def = this.SUPER(arguments).Attributes.call(
|
||||||
|
this,
|
||||||
|
{onmouseover: MENU.Mouseover, onmouseout: MENU.Mouseout,
|
||||||
|
onmousedown: MENU.Mousedown, role: this.role,
|
||||||
|
'aria-disabled': !!this.disabled});
|
||||||
if (this.disabled) {
|
if (this.disabled) {
|
||||||
def.className += " MathJax_MenuDisabled";
|
def.className += " MathJax_MenuDisabled";
|
||||||
}
|
}
|
||||||
var augdef = {onmouseover: MENU.Mouseover, onmouseout: MENU.Mouseout,
|
return def;
|
||||||
onmousedown: MENU.Mousedown, role: this.role,
|
|
||||||
'aria-disabled': !!this.disabled};
|
|
||||||
return MathJax.Hub.Insert(def, augdef);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user