From 344d7ec40d514a70ed6296a9369474a026ee24e6 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 21 May 2012 09:41:57 +0300 Subject: [PATCH] use Ox.indexOf, not Ox.getObject --- source/Ox.UI/js/Video/Ox.VideoEditor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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});