update video editor
This commit is contained in:
parent
e98696b93d
commit
b2e8b2ac82
9 changed files with 623 additions and 485 deletions
|
|
@ -103,7 +103,7 @@ Ox.range = function() {
|
|||
? Ox.pad(matches[val], len)
|
||||
+ val.toString().substr(matches[val].length)
|
||||
: val
|
||||
).toLowerCase();
|
||||
).toLowerCase().replace(/^\W+/, '');
|
||||
});
|
||||
return sort;
|
||||
}
|
||||
|
|
@ -114,8 +114,8 @@ Ox.range = function() {
|
|||
(arr, fn) -> Sorted array
|
||||
arr <a> Array
|
||||
fn <f|u> Optional map function that returns the value for the array element
|
||||
> Ox.sort(['10', '9', 'B', 'a'])
|
||||
['9', '10', 'a', 'B']
|
||||
> Ox.sort(['"z"', '10', '9', 'B', 'a'])
|
||||
['9', '10', 'a', 'B', '"z"']
|
||||
> Ox.sort([{id: 0, name: '80 Days'}, {id: 1, name: '8 Women'}], function(v) {return v.name})
|
||||
[{id: 1, name: '8 Women'}, {id: 0, name: '80 Days'}]
|
||||
@*/
|
||||
|
|
@ -153,7 +153,7 @@ Ox.range = function() {
|
|||
};
|
||||
});
|
||||
by.map(function(v) {
|
||||
return v.key
|
||||
return v.key;
|
||||
}).forEach(function(key) {
|
||||
values[key] = getSortValues(arr.map(function(v) {
|
||||
return v[key];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue