Commit bf27e0c1 authored by Gautam Chitnis's avatar Gautam Chitnis

Cleanup :Removed unnecessary code from playlist components

This commit cleans up playlist component files.

Gautam C.
parent 937e6d25
......@@ -8,12 +8,6 @@ Vue.component('playlist-buttons', {
{
sendCommand(0,"command=pl_repeat");
}
/*,
removeCurrent: function ()
{
//sendCommand(0,"command=pl_delete&id="+this.$parent.$parent.$data.playlistItems[0].id);
//bus.$emit('removeItem',this.$parent.$parent.$data.playlistItems[0].id);
}*/
},
created: function()
{
......@@ -21,12 +15,5 @@ Vue.component('playlist-buttons', {
{
this.toggleRepeat();
}.bind(this));
/*bus.$on('removeCurrent', function(e)
{
console.log(e);
console.log("here");
this.removeCurrent();
}.bind(this));*/
}
});
\ No newline at end of file
......@@ -20,7 +20,6 @@ Vue.component('playlist', {
}
},
removeItem: function(id) {
console.log(id);
sendCommand(0,"command=pl_delete&id="+id);
this.$parent.playlistItems.splice({ id: id });
sendCommand(1);
......@@ -80,13 +79,6 @@ Vue.component('playlist', {
this.refreshPlaylist();
}.bind(this));
bus.$on('removeCurrent', function(e)
{
console.log(e);
console.log("here");
//this.removeCurrent();
}.bind(this));
this.refreshPlaylist();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment