File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,11 @@ module.exports = {
81
81
* update the UI after a distinct query and mark appropriate elements with .select class.
82
82
* @param {Object } data data object of the event
83
83
*/
84
- updateUI_distinct : function ( data ) {
84
+ updateUI_distinct : function ( ) {
85
+ debug ( 'update ui distinct' ) ;
85
86
var uiElements = this . queryAll ( '.selectable' ) ;
86
87
_ . each ( uiElements , function ( el ) {
87
- var elData = data . source === 'unique' ? el . innerText : d3 . select ( el ) . data ( ) [ 0 ] . value ;
88
+ var elData = el . innerText || d3 . select ( el ) . data ( ) [ 0 ] . value ;
88
89
if ( _ . contains ( _ . pluck ( this . selectedValues , 'value' ) , elData ) ) {
89
90
el . classList . add ( 'selected' ) ;
90
91
el . classList . remove ( 'unselected' ) ;
@@ -265,10 +266,11 @@ module.exports = {
265
266
// now call appropriate event handlers and query build methods
266
267
if ( data . type === 'drag' ) {
267
268
this . handleEvent_drag ( ) ;
269
+ this [ 'buildQuery_' + queryType ] ( ) ;
268
270
} else {
269
271
this [ 'handleEvent_' + queryType ] ( data ) ;
272
+ this [ 'buildQuery_' + queryType ] ( ) ;
273
+ this [ 'updateUI_' + queryType ] ( ) ;
270
274
}
271
- this [ 'buildQuery_' + queryType ] ( ) ;
272
- this [ 'updateUI_' + queryType ] ( data ) ;
273
275
}
274
276
} ;
You can’t perform that action at this time.
0 commit comments