only focus if elment is in dom
This commit is contained in:
parent
977505e9ee
commit
ccc50be7de
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,6 @@ Ox.VideoEditor <f> VideoEditor Object
|
||||||
// fixme: should be VideoAnnotationEditor
|
// fixme: should be VideoAnnotationEditor
|
||||||
|
|
||||||
Ox.VideoEditor = function(options, self) {
|
Ox.VideoEditor = function(options, self) {
|
||||||
|
|
||||||
self = self || {};
|
self = self || {};
|
||||||
var that = Ox.Element({}, self)
|
var that = Ox.Element({}, self)
|
||||||
.defaults({
|
.defaults({
|
||||||
|
@ -1137,7 +1136,8 @@ Ox.VideoEditor = function(options, self) {
|
||||||
if (Ox.isUndefined(data)) {
|
if (Ox.isUndefined(data)) {
|
||||||
// doubleclick on small timeline
|
// doubleclick on small timeline
|
||||||
data = getAnnotation();
|
data = getAnnotation();
|
||||||
} else if (!data.id) {
|
} else if (!data.id && Ox.UI.elements[that.oxid]) {
|
||||||
|
// focus only if in the dom
|
||||||
that.gainFocus();
|
that.gainFocus();
|
||||||
}
|
}
|
||||||
// FIXME
|
// FIXME
|
||||||
|
|
Loading…
Reference in a new issue