UI controller: add default edit points
This commit is contained in:
parent
3e8a989dd2
commit
a299fa6e47
1 changed files with 9 additions and 0 deletions
|
@ -161,6 +161,15 @@ pandora.UI = (function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args.edit) {
|
||||||
|
if (
|
||||||
|
!pandora.user.ui.editPoints[args.edit]
|
||||||
|
&& !args['editPoints.' + args.edit]
|
||||||
|
) {
|
||||||
|
add['editPoints.' + args.edit] = {clip: '', 'in': 0, out: 0, position: 0};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// items in args trigger events, items in add do not
|
// items in args trigger events, items in add do not
|
||||||
[args, add].forEach(function(obj, isAdd) {
|
[args, add].forEach(function(obj, isAdd) {
|
||||||
Ox.forEach(obj, function(val, key) {
|
Ox.forEach(obj, function(val, key) {
|
||||||
|
|
Loading…
Reference in a new issue