1
0
Fork 0
forked from 0x2620/oxjs

add some docstrings

This commit is contained in:
j 2011-09-14 10:34:33 -04:00
commit 4768dcfe8e
5 changed files with 108 additions and 1 deletions

View file

@ -1006,11 +1006,23 @@ Ox.VideoEditor = function(options, self) {
}
};
/*@
addAnnotation <f> add annotation
(layer, item) -> <o> add annotation to layer
layer <s> layer id
item <o> annotation to add
@*/
that.addAnnotation = function(layer, item) {
var i = Ox.getPositionById(self.options.layers, layer);
self.$annotationPanel[i].addItem(item);
};
/*@
removeAnnotations <f> add annotation
(layer, ids) -> <o> remove annotation from layer
layer <s> layer id
ids <a> array of item ids to remove
@*/
that.removeAnnotations = function(layer, ids) {
var i = Ox.getPositionById(self.options.layers, layer);
self.$annotationPanel[i].removeItems(ids);