I've got a set of panels that are draggable, but at times I want to be able to disable / enable them... I'm sure this is the correct way to do so, but getting an undefined error...
dragArray=[];
totalPanels=10;
for (n=1; n<=totalPanels; n++){
dragArray[n] = Draggable.create("#slide"+n, {cursor:"pointer", type:"left,top", throwProps:true, onDrag:function(){ peopleParallax(); }, onClick:function(){ slideClick(currentRollover); }, dragClickables:true, edgeResistance:0.9, bounds:'#siteContainer'});
}
Can I not use dragArray[n] = and then the draggable code? and then use
dragArray[2].disable();
dragArray[2].enable();