Ox.getPositionById() -> Ox.getIndexById()
This commit is contained in:
parent
4ca01b2bfa
commit
8097cc7812
19 changed files with 23 additions and 30 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue