UI controller: add default edit points

This commit is contained in:
rolux 2013-07-12 20:32:32 +00:00
parent 3e8a989dd2
commit a299fa6e47

View file

@ -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) {