Is it possible to set the method of a SINGLE object after it has been initialized:
This sets the default behavior for ALL objects:
$.extend($.fn.tree.defaults, {
onBeforeLoad: function(node,param){
}
})
This will set the method for a SINGLE element, but it will also cause the method to fire:
$('#tt').tree({
onBeforeLoad: function(node,param){
}
})
Can I set the method on a SINGLE object which has already been initialized without it triggering the event:
$('#tt').tree().onBeforeLoad = function(node,param){do something...}