home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Narzedzia
/
AIMP2
/
aimp_2.61.583.exe
/
$TEMP
/
YandexPackSetup.msi
/
fil109DA413EAD146140B45E74754890802
< prev
next >
Wrap
Text File
|
2010-07-12
|
1KB
|
40 lines
XB.UI.Behaviour.Menu = XB.UI.Behaviour.extend({
nodeName: "menupopup",
append: function() {
var parentNode = this.comment.parentNode;
if (parentNode.localName == "menuitem") {
parentNode.behaviour.transform("menu");
} else if (parentNode.localName == "toolbarbutton") {
parentNode.behaviour.appendDropDownMenu(this);
}
this.base();
},
destroy: function() {
try {
var parentNode = this.comment.parentNode;
if (parentNode.localName == "menu") {
parentNode.behaviour.transform("menuitem");
}
else if (parentNode.localName == "toolbarbutton") {
parentNode.behaviour.removeDropDownMenu(this);
}
}
finally {
this.base();
}
}
});
XB.UI.Behaviour.MenuItem = XB.UI.Behaviour.IWithAction.extend({
nodeName: "menuitem"
});
XB.UI.Behaviour.MenuSeparator = XB.UI.Behaviour.extend({
nodeName: "menuseparator",
build: function() {
}
});