X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=experimental%2Fpalette%2Fpalette.js;h=514463f554c45d374cb8ec6497c0b672c9133a12;hb=77a1405a7dea7e9de770583598a50e5907e6b1a1;hp=b61f0d98305efe9500e39f7a292b9bdf42a1bcdb;hpb=7a6088783a85f965087c0551120c9612d58e832a;p=dygraphs.git diff --git a/experimental/palette/palette.js b/experimental/palette/palette.js index b61f0d9..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 = $("