Skip to content

Commit

Permalink
Fix for empty unused tags array.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurianX committed Oct 26, 2015
1 parent 7616a6b commit a70d81c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions angular-tagscategorizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ angular.module('tagsCategorizer')
var tags = angular.element(element.children().children().children()[1])[0];
drake.containers.push(tags);
}, 100);
} else {
// Means the array is probably empty
scope.ungroupedTags = [];
}
}
);
Expand Down
3 changes: 3 additions & 0 deletions dist/angular-tagscategorizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ angular.module('tagsCategorizer')
var tags = angular.element(element.children().children().children()[1])[0];
drake.containers.push(tags);
}, 100);
} else {
// Means the array is probably empty
scope.ungroupedTags = [];
}
}
);
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-tagscategorizer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a70d81c

Please sign in to comment.