How to set plug-in's property?
Hello,
I am using JQuery's Simple Tree plugin with following defination,
$.fn.simpleTree = function(opt){
//alert("1");
return this.each(function(){
var TREE = this;
var ROOT = $('.root',this);
var mousePressed = false;
var mouseMoved = false;
var dragMoveType = false;
var dragNode_destination = false;
var dragNode_source = false;
var dragDropTimer = false;
var ajaxCache = Array();
var ownerElOfDraggingItem;
var restoredData;
TREE.option = {
drag: true,
animate: false,
autoclose: false,
speed: 'slow',
afterAjax: false,
afterMove: false,
afterClick: false,
afterDblClick: false,
// added by Erik Dohmen (2BinBusiness.nl) to make context menu cliks available
afterContextMenu: false,
docToFolderConvert:false,
cookieId: "simpletree_cookie",
restoreTreeState:true
};
/* Remaining functions*/
}
If i want to set drag property then i directly change it from above. But, if i want to implement above plug-in on different module in same project then how can i set the property of plug-in?