only focus if elment is in dom

This commit is contained in:
j 2013-03-02 08:07:02 +00:00
parent 977505e9ee
commit ccc50be7de

View file

@ -44,7 +44,6 @@ Ox.VideoEditor <f> VideoEditor Object
// fixme: should be VideoAnnotationEditor
Ox.VideoEditor = function(options, self) {
self = self || {};
var that = Ox.Element({}, self)
.defaults({
@ -1137,7 +1136,8 @@ Ox.VideoEditor = function(options, self) {
if (Ox.isUndefined(data)) {
// doubleclick on small timeline
data = getAnnotation();
} else if (!data.id) {
} else if (!data.id && Ox.UI.elements[that.oxid]) {
// focus only if in the dom
that.gainFocus();
}
// FIXME