Using @@ as track key separator; Fixes #183

This commit is contained in:
James Barnsley
2017-08-29 08:35:26 +12:00
parent f3097d00b5
commit 473b2b0b2c

View File

@ -300,10 +300,10 @@ class TrackList extends React.Component{
**/
buildTrackKey(track, index){
let key = index
key += '_'+(track.tlid ? track.tlid : 'none')
key += '_'+track.uri
key += '_'+(this.props.uri ? this.props.uri : 'none')
key += '_'+(this.props.context ? this.props.context : 'none')
key += '@@'+(track.tlid ? track.tlid : 'none')
key += '@@'+track.uri
key += '@@'+(this.props.uri ? this.props.uri : 'none')
key += '@@'+(this.props.context ? this.props.context : 'none')
return key
}
@ -331,7 +331,7 @@ class TrackList extends React.Component{
// This is enough to perform interactions (dragging, selecting, etc)
let array = []
for (let i = 0; i < keys.length; i++){
let key = keys[i].split('_')
let key = keys[i].split('@@')
if (indexes_only){
array.push(key[0])