The plugin authoring wiki page says that if I need multiple public
static methods, I should add them to an object.

jQuery.logError = function() { ... };
jQuery.logWarning = function() { ... };
jQuery.logDebug = function() { ... };


jQuery.log = {
  error : function() { ... },
  warning : function() { ... },
  debug : function() { ... },
};


In the .logError function, I can use the 'this' keyword to access the
jQuery object, but when I'm inside the .log.error function, the 'this'
keyword doesn't seem to behave the same. Can someone help me figure
out how to get to the jQuery object in that case?

Reply via email to