Why is var test = positions.join("/");
returning [object Object]/[object Object]/[object Object] and so on?
what needs to be changed in-order for this to work properly?
It should be returning positions like 0,0/0,360/0,660. Im not sure if the commas would be in there though.
$(function() {
$('.AppList').droppable({
accept: ".App",
tolerance: 'fit',
drop: function(event, ui) {
var apps = $(".App"),
positions = [];
$.each(apps, function (index, app) {
var positionInfo = $(app).position();
positions.push(positionInfo);
});
var test = positions.join("/");
console.log(test);
}
});
});