 
     console.log "#### tables ####"
     for t of $blab.table
+        console.log "t???", t
         $blab.table[t].update()
         console.log $blab.table[t].stringify()
 


    update: ->
        @sheet.spec.data[0][0] =  @slider.slider("value")
   
## From GUI




loadgist = (gistid, filename) ->

    $.ajax(
        url: "https://api.github.com/gists/#{gistid}"
        type: 'GET'
        dataType: 'jsonp'

    ).success((gistdata) ->
        specs = JSON.parse(gistdata.data.files[filename].content)

        build = (w) ->
            $blab[w] = {}
            $blab[w][spec.id] = new toolbox[w] spec for spec in specs[w]

        for spec of specs
            build(spec)

        compute()
        
    ).error (e) ->
        # ajax error
        return

loadgist("f673df3f600fdeb17608", "app.json");

