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
/
fil41044E4D19BC063E0FB82B77D0107AC7
< prev
next >
Wrap
Text File
|
2010-07-12
|
926b
|
28 lines
XB.UI.Behaviour.Tooltip = XB.UI.Behaviour.extend({
nodeName: "tooltip",
constructor: function(comment, element, widgetInstanceId, builder) {
this.base(comment, element, widgetInstanceId, builder);
},
create: function() {
this.base();
this.node.appendChild(this.node.ownerDocument.createElementNS(XB.UI.consts.STR_XUL_NS, "box"));
},
append: function() {
var id = "xb-tooltip-" + Math.floor(Math.random() * 10000);
this.node.setAttribute("id", id);
this.comment.parentNode.setAttribute("tooltip", id);
var parent = this.comment.parentNode;
while (parent.localName != "toolbaritem")
parent = parent.parentNode;
parent.appendChild(this.node);
},
build: function() {
this.builder.build(this.element, this.node.firstChild, this.widgetInstanceId);
}
});