 
     constructor: (@spec) ->
 
-        @sheet = $blab.sheet[@spec.id]
+        @sheet = $blab.component.sheet[@spec.id]
 
         @container = $("##{@spec.id}")
         @container.append("<div class='slider'></div>")

        console.log $blab.slider[sl].stringify()

    # local copy of vars
    #console.log "?????", $blab.sheet 
    for sym of $blab.sheet
        #console.log "sh??", sym
        $blab.sheet[sym].toLocal()

    console.log "######## user-code ########"



    console.log "######## post-code ########"

    $blab.spec = {}
    for c of $blab.component
        $blab.spec[c] = {}
        for i of $blab.component[c]
            $blab.spec[c][i] = $blab.component[c][i].spec
            if c == "sheet"
                $blab.component.sheet[i].fromLocal(eval(i))
            else
                $blab.component[c][i].update()

    console.log ">>>", JSON.stringify($blab.spec)
    

loadgist = (gistid, filename) ->

