From: David Schoonover Date: Wed, 20 Jun 2012 16:05:38 +0000 (-0700) Subject: Unbreaks dygraph charts. Heh. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=1d84523a3e5d446790a280f8f49d766f6ee5808c;p=kraken-ui.git Unbreaks dygraph charts. Heh. --- diff --git a/lib/graph/graph-model.co b/lib/graph/graph-model.co index 96e679f..e72ca89 100644 --- a/lib/graph/graph-model.co +++ b/lib/graph/graph-model.co @@ -88,7 +88,6 @@ Graph = exports.Graph = BaseModel.extend do # {{{ attributes.options or= {} attributes.slug or= attributes.id if attributes.id? @optionCascade = new Cascade attributes.options - @on 'change:chartType', ~> @chartType = ChartType.create this BaseModel.call this, attributes, opts @@ -97,6 +96,8 @@ Graph = exports.Graph = BaseModel.extend do # {{{ @constructor.register this @parents = new GraphList + @chartType = ChartType.create this + @on 'change:chartType', ~> @chartType = ChartType.create this # Insert submodels in place of JSON @dataset = new DataSet {id:@id, ...@get 'data'} diff --git a/lib/main-geo.co b/lib/main-geo.co index 4369a2a..2faa384 100644 --- a/lib/main-geo.co +++ b/lib/main-geo.co @@ -1,5 +1,5 @@ -# Seq = require 'seq' -# d3 = require 'd3' +Seq = require 'seq' +d3 = require 'd3' ColorBrewer = require 'colorbrewer'