We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06d0ae9 + bd43f1a commit 6039267Copy full SHA for 6039267
scout-ui/src/field-list/index.js
@@ -36,8 +36,8 @@ var BasicFieldView = View.extend({
36
},
37
initialize: function() {
38
var that = this;
39
- // the debounce cuts down computation time by a factor of 5-10 here
40
- this.model.types.on('sync', _.debounce(function() {
+ // debounce prevents excessive rendering
+ this.model.values.on('add', _.debounce(function(evt) {
41
// for now pick first type, @todo: make the type bars clickable and toggle chart
42
that.switchView(that.model.types.at(0));
43
}, 300));
0 commit comments