Using @@ as track key separator; Fixes #183
This commit is contained in:
@ -300,10 +300,10 @@ class TrackList extends React.Component{
|
|||||||
**/
|
**/
|
||||||
buildTrackKey(track, index){
|
buildTrackKey(track, index){
|
||||||
let key = index
|
let key = index
|
||||||
key += '_'+(track.tlid ? track.tlid : 'none')
|
key += '@@'+(track.tlid ? track.tlid : 'none')
|
||||||
key += '_'+track.uri
|
key += '@@'+track.uri
|
||||||
key += '_'+(this.props.uri ? this.props.uri : 'none')
|
key += '@@'+(this.props.uri ? this.props.uri : 'none')
|
||||||
key += '_'+(this.props.context ? this.props.context : 'none')
|
key += '@@'+(this.props.context ? this.props.context : 'none')
|
||||||
return key
|
return key
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -331,7 +331,7 @@ class TrackList extends React.Component{
|
|||||||
// This is enough to perform interactions (dragging, selecting, etc)
|
// This is enough to perform interactions (dragging, selecting, etc)
|
||||||
let array = []
|
let array = []
|
||||||
for (let i = 0; i < keys.length; i++){
|
for (let i = 0; i < keys.length; i++){
|
||||||
let key = keys[i].split('_')
|
let key = keys[i].split('@@')
|
||||||
|
|
||||||
if (indexes_only){
|
if (indexes_only){
|
||||||
array.push(key[0])
|
array.push(key[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user