From 8049f73f09554f098b29572224e58a5475f407d2 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Sat, 1 Sep 2012 22:07:44 +0100 Subject: [PATCH] cleanup --- src/view.map.js | 3 --- src/view.multiview.js | 15 ++++++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/view.map.js b/src/view.map.js index cd4686d7..a9cb17f0 100644 --- a/src/view.map.js +++ b/src/view.map.js @@ -201,9 +201,6 @@ my.Map = Backbone.View.extend({ if (feature.properties && feature.properties.popupContent) { self.features.bindPopup(feature.properties.popupContent); } - if (feature.properties && feature.properties.cid){ - self.features.cid = feature.properties.cid; - } } catch (except) { wrongSoFar += 1; var msg = 'Wrong geometry value'; diff --git a/src/view.multiview.js b/src/view.multiview.js index 3645719d..c9d462c3 100644 --- a/src/view.multiview.js +++ b/src/view.multiview.js @@ -143,28 +143,28 @@ my.MultiView = Backbone.View.extend({ view: new my.SlickGrid({ model: this.model, state: this.state.get('view-grid') - }), + }) }, { id: 'graph', label: 'Graph', view: new my.Graph({ model: this.model, state: this.state.get('view-graph') - }), + }) }, { id: 'map', label: 'Map', view: new my.Map({ model: this.model, state: this.state.get('view-map') - }), + }) }, { id: 'timeline', label: 'Timeline', view: new my.Timeline({ model: this.model, state: this.state.get('view-timeline') - }), + }) }, { id: 'transform', label: 'Transform', @@ -375,7 +375,7 @@ my.MultiView = Backbone.View.extend({ var self = this; _.each(this.pageViews, function(pageView) { pageView.view.bind('recline:flash', function(flash) { - self.notify(flash); + self.notify(flash); }); }); }, @@ -397,14 +397,15 @@ my.MultiView = Backbone.View.extend({ }, flash ); + var _template; if (tmplData.loader) { - var _template = ' \ + _template = ' \
\ {{message}} \   \
'; } else { - var _template = ' \ + _template = ' \
× \ {{message}} \
';