Ox.getPositionById() -> Ox.getIndexById()

This commit is contained in:
rolux 2012-01-04 13:41:05 +05:30
commit 8097cc7812
19 changed files with 23 additions and 30 deletions

View file

@ -1079,7 +1079,7 @@ Ox.VideoEditor = function(options, self) {
item <o> annotation to add
@*/
that.addAnnotation = function(layer, item) {
var i = Ox.getPositionById(self.options.layers, layer);
var i = Ox.getIndexById(self.options.layers, layer);
self.$annotationPanel[i].addItem(item);
};
@ -1090,7 +1090,7 @@ Ox.VideoEditor = function(options, self) {
ids <a> array of item ids to remove
@*/
that.removeAnnotation = function(layer, id) {
var i = Ox.getPositionById(self.options.layers, layer);
var i = Ox.getIndexById(self.options.layers, layer);
self.$annotationPanel[i].removeItem(id);
};