X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=experimental%2Fpalette%2Fpalette.js;h=514463f554c45d374cb8ec6497c0b672c9133a12;hb=2fd143d3e284124506b00e4afa9e29f9de636543;hp=65ef612749a55c7ef1b716b2071d12ed29e5a6c4;hpb=7754081a7dc2bd2f399fe6f029b581451123bd83;p=dygraphs.git diff --git a/experimental/palette/palette.js b/experimental/palette/palette.js index 65ef612..514463f 100644 --- a/experimental/palette/palette.js +++ b/experimental/palette/palette.js @@ -38,103 +38,96 @@ function Palette(scope) { this.root = null; } -Palette.createChild = function(type, parentElement, className) { - var element = document.createElement(type); - parentElement.appendChild(element); - if (className) { - element.className = className; - } - return element; -}; - Palette.prototype.create = function(parentElement) { var palette = this; - var table = Palette.createChild("div", parentElement[0], "palette"); - this.root = table; - table.width="300px"; + var table = $("