From d2b2d47e0dee56d6c67197b11923c3c2a3a33468 Mon Sep 17 00:00:00 2001 From: David Schoonover Date: Wed, 20 Jun 2012 09:05:38 -0700 Subject: [PATCH] Unbreaks dygraph charts. Heh. --- lib/graph/graph-model.co | 3 ++- lib/main-geo.co | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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' -- 1.7.0.4