Skip to content

Commit 3482cd4

Browse files
rueckstiesskangas
authored andcommitted
(bug) removed handler that calls redraw on model change.
1 parent c22ae21 commit 3482cd4

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

scout-ui/src/minicharts/viz.js

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ module.exports = AmpersandView.extend({
5151
},
5252

5353
initialize: function(opts) {
54-
if (this.model !== undefined) {
55-
this.listenTo(this.model, 'change', this.redraw);
56-
}
5754

5855
if (this.width === 'auto' || this.width === undefined) {
5956
this._autoWidth = true;
@@ -134,23 +131,23 @@ module.exports = AmpersandView.extend({
134131
});
135132
}
136133
return this;
137-
},
138-
139-
redraw: function() {
140-
this._chooseDataSource();
141-
this.data = this.transform(this.data);
142-
143-
this._measure();
144-
145-
if (this.vizFn) {
146-
this.vizFn({
147-
width: this.width,
148-
height: this.height,
149-
data: this.data,
150-
el: this.el,
151-
});
152-
}
153134
}
135+
// redraw: function() {
136+
// debug('redraw', this.cid);
137+
// this._chooseDataSource();
138+
// this.data = this.transform(this.data);
139+
//
140+
// this._measure();
141+
//
142+
// if (this.vizFn) {
143+
// this.vizFn({
144+
// width: this.width,
145+
// height: this.height,
146+
// data: this.data,
147+
// el: this.el,
148+
// });
149+
// }
150+
// }
154151
});
155152

156153
/**

0 commit comments

Comments
 (0)