pass empty string instead of undefined to Ox.words

This commit is contained in:
j 2015-05-23 13:25:22 +02:00
parent 6988dfa89f
commit 24027c0bcb

View file

@ -1602,7 +1602,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
// action can be 'add' or 'remove' // action can be 'add' or 'remove'
var words = []; var words = [];
Ox.forEach(Ox.count(Ox.words( Ox.forEach(Ox.count(Ox.words(
getAnnotationValue(self.options.selected) getAnnotationValue(self.options.selected) || ''
)), function(count, value) { )), function(count, value) {
words.push({count: count, value: value}); words.push({count: count, value: value});
}); });