X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=experimental%2Fpalette%2Fpalette.js;h=514463f554c45d374cb8ec6497c0b672c9133a12;hb=3a0e53a45ffaf12515f99f905221ba59490961fa;hp=9e4139f9225f428a2bf1b732b903273e3bc8ffe9;hpb=9ccb0d6e22effd68675bf310da9e601df0fa00a3;p=dygraphs.git diff --git a/experimental/palette/palette.js b/experimental/palette/palette.js index 9e4139f..514463f 100644 --- a/experimental/palette/palette.js +++ b/experimental/palette/palette.js @@ -38,112 +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 = $("