NIFI-325:

- Ensuring empty selection does enable the fill color dialog.
This commit is contained in:
Matt Gilman 2015-02-19 06:55:38 -05:00
parent 0047fa4502
commit d76fe229bb
1 changed files with 4 additions and 0 deletions

View File

@ -481,6 +481,10 @@ nf.CanvasUtils = (function () {
* @returns {boolean}
*/
isColorable: function(selection) {
if (selection.empty()) {
return false;
}
// determine if the current selection is entirely processors or labels
var selectedProcessors = selection.filter(function(d) {
return nf.CanvasUtils.isProcessor(d3.select(this));