1

jQuery とカスタム プレーヤー (http://developers.soundcloud.com/docs/custom-player) を使用して、特定のタグに基づいて、SoundCloud ユーザーからトラック リストを作成しようとしています。
(簡略化された)ループは機能しますが、削除関数はオブジェクトを削除していません。

$('.soundcloud').scPlayer({
    links: [{
        url: "http://soundcloud.com/myusername",
        title: "http://soundcloud.com/myusername"
    }],
    beforeRender : function(tracksData) {
        $.each(tracksData, function(index, item) {
            tags = item.tag_list.toLowerCase().split(' ');
            if(jQuery.inArray("mytag", tags)>1) {
                 console.log('this track is not allowed');
                 delete tracksData.item // this is my problem, right here
            }
        });
    }
});

助言がありますか?前もって感謝します!

4

0 に答える 0