So I added the loadFirebugConsole(); statement like so:
function($) {
$.fn.jqSmug = function(options){
console.log(this);
$.getJSON(URL+"&JSONCallback=?",
function(data){
$.fn.jqPlugin.withSessionID(elements);
loadFirebugConsole()
console.log(this);
}
);
return this;
};
};
Same negative result. Then I tried the following:
function($) {
$.fn.jqSmug = function(options){
console.log(this);
$.getJSON(URL+"&JSONCallback=?",
function(data){
loadFirebugConsole()
$.fn.jqPlugin.withSessionID(elements);
console.log(this);
}
);
return this;
};
};
And everything works as advertised, or at least as before. So somehow
calling the public jQuery plugin function from within the AJAX call
does something weird with the scope...
It is beyond my means to find out more, but it does seem to work...
Thanks