I've created an object as follows.
function StartObj() {
var events = {
a: function() {
alert("hello");
},
b = function() {
lightbox(events.a);
}
};
this.main = function() {
$("#objId").click(events.b);
}
}
$(document).ready(function(){
var _start_obj = new StartObj();
_start_obj.main();
});
And in another file,
function lightbox(funcPtr) {
alert(funcPtr);
}
The alert is reporting funcPtr is undefined; also the google chrome console.
thismeans inside yourbfunction.)