X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=experimental%2Fpalette%2Ftooltip.js;h=d084f826c1cab818cf22fd5f7956d27e8fe1097f;hb=3a0e53a45ffaf12515f99f905221ba59490961fa;hp=6ceb16eff61e08f119f23b5934fd3cf9c4e3a753;hpb=44885208a48a23f1e1a9e3bb867efdc94f1e5933;p=dygraphs.git diff --git a/experimental/palette/tooltip.js b/experimental/palette/tooltip.js index 6ceb16e..d084f82 100644 --- a/experimental/palette/tooltip.js +++ b/experimental/palette/tooltip.js @@ -27,45 +27,40 @@ function Tooltip(parent) { if (!parent) { - parent = document.getElementsByTagName("body")[0]; + parent = $("body")[0]; } - this.elem = Palette.createChild("div", parent); - this.title = Palette.createChild("div", this.elem); - this.elem.className = "tooltip"; - this.title.className = "title"; - this.type = Palette.createChild("div", this.elem); - this.type.className = "type"; - this.body = Palette.createChild("div", this.elem); - this.body.className = "body"; - this.hide(); -} + this.elem = $("