diff --git a/source/Ox.UI/js/Video/Ox.VideoEditor.js b/source/Ox.UI/js/Video/Ox.VideoEditor.js index fb599774..36b82e1e 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditor.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditor.js @@ -1353,7 +1353,9 @@ Ox.VideoEditor = function(options, self) { words.push({count: count, value: value}); }); words.forEach(function(word) { - var index = Ox.getIndex(self.words, 'value', word.value); + var index = Ox.indexOf(self.words, function(w) { + return w.value === word.value; + }); if (action == 'add') { if (index == -1) { self.words.push({count: 1, value: word.value});